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:
00895319
Vues:
14
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform