Click here to Skip to main content
15,894,405 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In my application i am use gridview in that i m using EmptyDataText in gridview to dispaly error message to user but it dispaly error on top header gridview. i want to dispaly in centr of gridview. i m also try it using
<EmptyDataRowStyle  VerticalAlign ="Middle" />
but it shown again in top
Posted

YOu can use

HTML
<emptydatatemplate></emptydatatemplate>


and in this you can add DIV with styles and many more
 
Share this answer
 
you have to use EmptyDataTemplate not EmptyDataRowStyle!
EmptyDataTemplate shown when datasource is empty, and EmptyItemTemplate when the current item is empty!
use templates!
 
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