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

Platform: WinForms|Category: Datagrid

Adam Chester gives this solution in a posting on the microsoft.public.dotnet.framework.windowsforms newgroup.

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