Fixed GridView Header with horizontal and vertical scrolling in asp.net

前端 未结 6 2060
慢半拍i
慢半拍i 2020-12-11 20:18

I want to fix(Freeze) gridview header while vertical scrolling.

I also want to fix first column while horizontal scrolling.

I want this in both chrome and IE

6条回答
  •  悲哀的现实
    2020-12-11 20:44

    It is possible to apply the specific GridView / Table layout via custom CSS rules (as it was discussed in the

    scrollable? thread) to fix GridView's Header. However, this approach will not work in all browsers. The 3-rd ASP.NET GridView controls (such as the ASPxGridView from DevExpress component vendor provide this functionality.

    Check also the following CodeProject solutions:

    • Fixed header Grid

    • Gridview with fixed header

    • Gridview Fixed Header

    提交回复
    热议问题