Row/Column changing event

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
 
M

Miha Markic [MVP C#]

Hi,

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

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

Top