Hello,
I have a GUI in which I have a Grid and some athoer controls.
I use DataBinding and the Data bound to the bindingsources are implementing IDataErrorInfoand INotifyPropertyChanged.
So when there is an error in the data all controls are displaying the error with the errorprovider.
Now, I have the problem that the validation of the data displayed in the grid is as followed:
The data displayed is just valid, if ALL Rows in the grid have the same e.g. Customer. When adding another row with an other Customer the complete Data of the Grid is invalid.
If this is the case I would like to have the errorProvider next to the Grid, like all other Controls do that.
I know that I can set the Error-Icon by hand and I know that each Row/Column can display an Error, but I want to have the Icon next to the Grid set automatically by binding an IDataErrorInfo.
How can I achieve this behaviour with the Grid?
Thanks in advance...
Hello,
I am just checking about the progress of this issue. Let me know If you need my further assistance on this issue?
Thank you for using Infragistics Components.
Hi Wolfgang,
The ErrorProvider control works with any control as far as I know. Are you saying that it's not working for the WinGrid? I can't think of any reason why that should be the case.The grid is no different than any other control in this regard.
I'm not sure what IDataErrorInfo has to do with it. Are you saying that you want to use IDataErrorInfo to determine if there are any errors in the grid's data source? If so, then this has nothing to do with the grid. You would read this information from the DataSource just as the grid is doing.
For a DataTable, I beleive you would use the GetErrors method.
Hi again,
I don't want to sow Row/Cell Errors.
I need to show that the whole Data of the Datasource is invalid not a single row.
I want to set the errorProvider-Icon next to the Grid not in the Grid.
Is there a way to do this?
Regrads,
Wolfgang
Hello ,
On the following link you could find information about “How to Display Row/Cell Errors Using IDataErrorInfo”:
http://help.infragistics.com/Help/NetAdvantage/WinForms/2011.1/CLR2.0/html/WinGrid_Display_Row_Cell_Errors_Using_IDataErrorInfo.html
Please let me know if you have any further questions.