Click here to Skip to main content
11,802,442 members (69,638 online)
Rate this: bad
Please Sign up or sign in to vote.
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 0: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 KrunalRohit 366
1 OriginalGriff 365
2 F-ES Sitecore 295
3 Afzaal Ahmad Zeeshan 230
4 CPallini 230
0 OriginalGriff 2,950
1 Maciej Los 1,910
2 KrunalRohit 1,862
3 CPallini 1,645
4 Richard MacCutchan 1,157

Advertise | Privacy | Mobile
Web01 | 2.8.151002.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