Click here to Skip to main content
12,813,994 members (30,458 online)
Rate this:
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 1:01am
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.
ryanb31 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
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
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170308.1 | Last Updated 30 Nov 2012
Copyright © CodeProject, 1999-2017
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