Live Chat Icon For mobile
Live Chat Icon

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, '');

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.