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:
00895320
Views:
16
>Great find.

I'm a wannabe detective. <g>

~~Bonnie


>Ya done good Bonnie!
>I was using the DataGridTextBoxColumn's Format property. I tied it to a function that just returned a hard coded string. That string would only replace non null values. Thats how I saw that nulls never get passed in.
>
>Great find.
>
>Thanks,
>
>Chris
>
>
>Chris,
>>
>>I have a much better answer than my first reply. I was looking at properties of the DataGridTextBoxColumn and saw one called .NullText. The tooltip says that it "gets or sets the text that is displayed when the column is null". Sounds like just what you need ...
>>
>>~~Bonnie
>>
>>>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,
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Reply
Map
View

Click here to load this message in the networking platform