Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
dear friends

i just want to fill up gridview withusing sqldatasource
if table have some blank column then in gridview it also came as blank cell
so i just want to fill up those blank cells
and also with autogenerate columns=true
no template field used
i tried with emprydatatext properties and emptydatatemplate but it is not working



so please give suggestions
thanks
Posted

1 solution

<asp:boundfield headertext="Middle Name" nulldisplaytext="N/A" datafield="MiddleName" sortexpression="MiddleName" xmlns:asp="#unknown"></asp:boundfield>

Here NullDisplayText="N/A" handle that.

Hope this can help you.
 
Share this answer
 
Comments
nilu16 2-May-11 6:42am    
THANKS PRASANT BHAI
Prasanta_Prince 2-May-11 12:55pm    
Good to know that it helps you.

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