Jan 15, 2008

How can I get rid of the error icon that appears when there is an editing error?

DataTable dt = (DataTable)dataGrid1.DataSource;

foreach(DataRow row in dt.GetErrors())

{

row.RowError = "";

foreach(DataColumn col in dt.Columns)

row.SetColumnError(col, "");

}