Hi,
I am using Ultragrid (Infragistics NetAdvantage 2006 Volume 1 CLR 2.0) in winforms .net 2.0 and I have created fews columns in the grid (ugCanopySpecies) and 2 of them have following settings -
.Bands(0).Columns("AGE").MinValue = 0
.Bands(0).Columns("AGE").MaxValue = 999
.Bands(0).Columns("DBH").MaxValue = 59
When ever there is wrong data entry with-in "AGE" column the grid is doing correct validation by throwing the error message as "Unable to update the data value: Value must be less than or equal to 999" but with column "DBH" whenever there is data validation problem it will say "Unable to update the data value: Value in the editor is not valid.".
I can't understand why two different error messages when every thing in scenario is same. Can you tell me what's the issue?
As of now I am showing the correct message by following way -
Private Sub ugCanopySpecies_Error(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinGrid.ErrorEventArgs) Handles ugCanopySpecies.Error
Case ugCanopySpecies.Rows.Band.Columns("DBH").Index
If e.DataErrorInfo.Cell.Column.Index = ugCanopySpecies.Rows.Band.Columns("DBH").Index Then
End If
End Sub
Waiting for your reply.
Thanks,
Mandeep.
This happens in the filter row of the grid as well.
I think the "Value in the editor is not valid" message occurs when the underlying data source rejects the value - like if you try to type letters into a numeric field. But since you are entering numbers here, I don't see how that could be the issue.
Can you duplicate this issue in a small sample project?