Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: ASP.NET VB.NET
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

Posted 30-Nov-12 1:01am
Er. Vikas Sangal at 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.
ryanb31 at 30-Nov-12 8:20am
It is unclear what you want. NULLS will likely just show as blanks.
Teenustar at 30-Nov-12 16:08pm
You must handle Null values when binding to a listview. Either handle it in SQL or in .net
musiw at 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 at 2-Dec-12 23:58pm
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)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 144
1 Sascha Lefévre 100
2 Maciej Los 94
3 Abhinav S 84
4 OriginalGriff 80
0 Sergey Alexandrovich Kryukov 6,578
1 OriginalGriff 6,298
2 Peter Leow 2,534
3 Abhinav S 2,358
4 Maciej Los 2,352

Advertise | Privacy | Mobile
Web04 | 2.8.150414.1 | Last Updated 30 Nov 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100