Welcome to WindowsClient.net | Sign in | Join

Here are some frequently asked questions about Windows Forms and their answers.

Windows Forms FAQs

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

DataTable dt = (DataTable) dataGrid1.DataSource;
foreach ( DataRow row in dt.GetErrors() )
{
 row.RowError = string.Empty;
  foreach ( DataColumn col in dt.Columns )
    row.SetColumnError( col, string.Empty );
}

Adam Chester