Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Display null values a blank in a grid
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00894551
Message ID:
00895319
Views:
13
I'll check that out Bill. In most of my web apps I have replaced the nulls with empty strings. Your way sounds like a better practice.

Thanks,

Chris


>Hi Chris,
>
>I have not done this task in winforms so I don't know the issues that would exist. However, in an ASP.NET grid, I have used the grid ItemDataBound event to test on NULL and replace with appropriate text ( E.g. "", "NA", etc. ). I should think the same methodology could be used in a winform as one method to resolve this. However, since I have not done this yet in winforms, I don't know what the details would be. Perhaps someone who has performed this task will jump in with them ...
>
>Bill
>
>>Anyone know how to suppress the (null) from appearing in a winform grid?
>>I used DataGridTextBoxColumn.format but it seems that null values never get passed in.
>>
>>Thanks,
Chris
Previous
Reply
Map
View

Click here to load this message in the networking platform