Click here to Skip to main content
15,881,757 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi guys,

i really dont know how to display null value from database (if have) into listview..i only know how to bind it to label text..but listview i dot have idea.

please help me

thanks
musiw
Posted
Comments
Er. Vikas Sangal 30-Nov-12 6:22am    
my question is here are you print anything else with listview data because i think in Listview every row is like a label and label does not show blank text.
ZurdoDev 30-Nov-12 8:20am    
It is unclear what you want. NULLS will likely just show as blanks.
Teenustar 30-Nov-12 16:08pm    
You must handle Null values when binding to a listview. Either handle it in SQL or in .net
musiw 2-Dec-12 13:30pm    
the column is not appear.for example column value for remarks is null(because user didnt key in) so when i want to display the column for remarks is blank.i understand but at least it must show the border table
Hari Krishna Prasad Inakoti 2-Dec-12 23:58pm    
hi,
u can save that remarks value is null.In that time u'll get null values in list view.Otherwise it will display like blank.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900