ErrorProvider and Grids

  • Thread starter Thread starter Woody Splawn
  • Start date Start date
Woody,
The System.Windows.Forms.DataGrid automatically (internally) uses an
ErrorProvider, when bound to a DataTable.

You can set DataRow.RowError to have an error icon on the current row in the
grid, you can use DataRow.SetColumnError on individual fields within a row.

You can have your own classes provide the same information for the grid by
implementing the System.CompontModel.IDataErrorInfo interface.

Hope this helps
Jay
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top