Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Display null values a blank in a grid
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00894551
Message ID:
00895320
Vues:
15
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform