Row/Column changing event

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

im using rowChanging and columnChanging events to present a message to the
user about wrong content of a cell in the dataGrid.
now i want that the content of the dataGrid will be saved only if the
dataGrid is empty from errors
is there a way to know which rows still has an error ??
how can i do that? any idea?
thanks
 
Hi,

Use DataSet.HasErrors, DataTable.HasErrors or loop through DataTable.Rows
and check DataRow.HasErrors (DataRow.GetColumnsInError will give you the
faulty columns).
 
Back
Top