Click here to Skip to main content
15,895,798 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
m using GridView control in Asp.net

here in my database table m having some row empty or NULL,
GridView control is linked with SqlDataSource, When GridView is displayed on webpage
NULL column displays nothing it is empty.
how i can fill that column with some default text or string only when column is NULL or Empty ?
Posted
Updated 29-May-14 21:53pm
v2

You can get the each Column Data in RowDataBound Event.
So, inside the Event, check if that is blank or not.
If blank, then replace it with any default text.
 
Share this answer
 
yes Tadit Dash i have solvedit yesterday only.
by just using NullDisplayText property in GridView
n thanx for your reply
 
Share this answer
 

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