Click here to Skip to main content
15,911,711 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can we give spaces in EmptyDataText of gridview(In starting)
I want to Show text in Gridview Like this if no data present

" No Record Found"
Posted

Answer is in C# and please convert in VB.NET before implementation.

grdView.EmptyDataText = " "+"No Records Found";
grdView.DataBind();

If this helped you then please Vote and accept as Answer. :rose:
 
Share this answer
 
v2
Comments
Hiren solanki 2-Nov-10 2:28am    
There's seperate tab for VB also.
use <emptydatatemplate> for accomplishing your problem

See HERE[^] for more details.

Please vote and Accept Answer if it Helped.
 
Share this answer
 
v2

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