I am using a sqldatasource for filling one GridView and on page loading or before taking any action, there is no data (default value=null) and normally the datagrid is empty (using emptydatatext="no records found etc etc...").. Issue is I can not see the header of that grid in empty case, but only the emptydatatext!
I have tried to use some code of the references below, but no success, because I'm not using DataTable control as a DataSource, but directly filling the gridview from sqldatasource! useless references:
http://mattberseth.com/blog/2007/07/how_to_show_header_and_footer.html
http://blogs.claritycon.com/blogs/kevin_marshall/archive/2006/02/28/247.aspx
http://www.codeproject.com/KB/aspnet/Fix_empty_GridView_issue.aspx
P.S. I'm not usign DataTable as a DataSource, but sqldatasource (from the Data Controls), and I want to show header, when sqldatasource is null or empty ?!