Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to not show nulls in the grid
Message
General information
Forum:
ASP.NET
Category:
WebForms
Miscellaneous
Thread ID:
00737597
Message ID:
00737711
Views:
17
Hi Roland,

1. Click on the DataGrid
2. In the properties window, select TableStyles, , click on the "..."
3. In the properties portion of the display window, select the GridColumnStyles, click on the "..."
4. For each of the columns, you will see in the properties portion of the display window, a property called NullText. Set that to be anything you want displayed if the value is NULL

or

You can set it via code for the DataGrid Column
Me.OrderID.NullText = "(None)"
>Hi,
>
>How do you display nothing in place of the null in a grid?
>
>Thanks
>Roland
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform