0

How to show a grid view with headers only in ASP.net.?. I need to add some rows after loading the grid. I am using framework 3.5. I need Something like ShowHeaderWhenEmpty like in ASP.NET 4.0 but I am not using 4.0. How to achieve this.?, ShowHeader property is also not working.

1
  • You can Bind the Grid with Empty Result set which have only schema. Commented May 28, 2013 at 12:49

1 Answer 1

4

take a look at the GridView's EmptyDataTemplate

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.emptydatatemplate.aspx

You should be able to use that to add some markup to simulate your header columns

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.