I want to display a the header in the gridview in case there is no data in the sql table... For which i am using the empty data template... But it is not working for me... Please correct me where i am going wrong.. The aspx code is as below:
ForeColor="Gray">

Anuja PawarPosted Dec 2, 2011, 7:17 AM
Use "ShowHeaderWhenEmpty" to true
Refer this
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.showheaderwhenempty.aspx
You can even see this thread
http://forums.asp.net/t/960167.aspx/1