Microsoft Communities

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 make the DataGrid column be blank and not display "(null)" as the default value?

When the user adds a new row in a DataGrid, the columns display "(null)". To prevent this behavior and make all the columns be empty, you can set the DefaultValue property of the DataColumn to be String.Empty.

Contributed from George Shepherd's Windows Forms FAQ



Page view counter