views:

16

answers:

1

using asp.net/sqldatasource/vb

Is there a way to place the insert row below the header in a gridview instead of in the footer?

A: 

No. Not that I'm aware of anyway.

You'd need to create a custom control which inhertis from the GridView class and override one of the Render methods. Or just write your own control.

A simplier method though, would be to hide the GridView header, create a html table that is the same style as the GridView header with a insert row below and then just place it directly above your GridView. Cheating in a way - but it'll work as long as you have all the columns at the same width in your GridView and your html table.

Jamie
Thought about the second method. Do you mean put the insert row in the header template instead of the footer?
Moyler