ASP.NET DataGrid simplest fixed header method (reposted)

xiaoxiao2021-03-06  45

1. Write CSS files

.fixtitle {

Background: navy;

Color: White;

Position: relative;

Top: Expression (this.offsetParent.scrolltop)

}

2. The CSS name of the DataGrid head is called fixTitle.

This is what I see the simplest fixed head.

转载请注明原文地址:https://www.9cbs.com/read-80429.html

New Post(0)