Hi
I am using IDataErrorInfo for managing error in object, I can generate error in some cases in child row, but it doesn;t show error icon in parent row, when all grid are collapsed no one can notice error in child grid, I want to show error in parent row at same time, I need some idea, help me with code example.
rubie
Hristo is a life saver. awesome
Hello,
Yes, you could ignore cell error. To do this you should set
ultraGrid1.DisplayLayout.Override.SupportDataErrorInfo = SupportDataErrorInfo.RowsOnly;
in order use IDataErrorInfo to display only row errors. Cell errors are ignored.
In your Employee class, you should implement validate method, which validates all of your fields and set _error if there is any error in the record. Then in get methods of Error property, you should call your validate method. I have modified your sample in order to demonstrate you this approach.
I hope that this will helps you.
I am making simple , how can ignores error in cell, can I show error in only rowselector.
I am attaching you sample, if u try totalattenddays in child table more then 31 gives you error icon in all cell of parent table , how can I set on error only on rowselector on that time.
As far as I understand your data source is some list of T class. So you could do something similar to the approach shown in the attached sample
Please let me know if you have any further questions.
but I couln;d able use this without dataset or datatable, how can I do when I have bindingsource.