Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gridview Fixed Header

I have a GridView with about 200 rows and I need to have a fixed header. The header of the page is not fixed.

How can I acheived this using anything: C#, CSS or Javascript/Jquery?

Thanks


1 Answers

If don't use horizontal scrolling, couldn't you just put the datagrid in a div. Then create a header div within the datagrid div and with margin-top 0; or something like that.

And just style it with your CSS.

like image 119
Mark van der Steenhoven Avatar answered Apr 24 '26 10:04

Mark van der Steenhoven