BUG: Error message when you set the Width property of a Boolean DataGrid column to 1 in Visual Basic .NET or in Visual C# .NET: “System.ArgumentException”
Dec.20, 2009 in
exception
Symptoms
You bind a DataGrid control to a data source that has a column with Boolean data. If you set the Width property of the DataGrid Boolean column to 1 at run time, you receive the following exception:
An unhandled exception of type ‘System.ArgumentException’ occurred in system.windows.forms.dll
Additional information: Invalid parameter used.
Resolution
To work around this bug, do not set the Width property of the DataGrid Boolean column to 1.

Leave a Reply