Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
English
How to not show nulls in the grid
Mensaje
General information
Foro:
ASP.NET
Category:
Miscellaneous
ID de la conversación:
00737597
ID del mensaje:
00737829
Views:
22
Roland,

This needs to be done for each column on the grid. There is no grid setting for this.

>Hi Cathi,
>
>Any way to apply the change from one property for all fields in the grid?
>
>Thanks
>Roland
>
>=========================================================================
>
>
>>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
Responder
Mapa
Ver

Click here to load this message in the networking platform