show all errors in import grids
This commit is contained in:
parent
dc657c32a5
commit
0258560221
@ -198,9 +198,12 @@ Public Class frmImportMain
|
|||||||
If oRow.HasErrors Then
|
If oRow.HasErrors Then
|
||||||
|
|
||||||
Dim oColumName = e.Column.FieldName
|
Dim oColumName = e.Column.FieldName
|
||||||
Dim oErrorField = oRow.Fields.Where(Function(field) field.Value.HasError).FirstOrDefault()
|
Dim oErrorFields = oRow.Fields.
|
||||||
|
Where(Function(field) field.Value.HasError).
|
||||||
|
Select(Function(field) field.Key).
|
||||||
|
ToList()
|
||||||
|
|
||||||
If Not IsNothing(oErrorField) AndAlso oColumName = oErrorField.Key Then
|
If oErrorFields.Count > 0 AndAlso oErrorFields.Contains(oColumName) Then
|
||||||
e.Appearance.Options.UseBackColor = True
|
e.Appearance.Options.UseBackColor = True
|
||||||
e.Appearance.BackColor = Color.LightCoral
|
e.Appearance.BackColor = Color.LightCoral
|
||||||
End If
|
End If
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user