修复了 GridView Header 在 asp.net 中的水平和垂直滚动 [英] Fixed GridView Header with horizontal and vertical scrolling in asp.net

查看:12
本文介绍了修复了 GridView Header 在 asp.net 中的水平和垂直滚动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在垂直滚动时修复(冻结)gridview 标题.

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

我还想在水平滚动时修复第一列.

I also want to fix first column while horizontal scrolling.

我希望在 chrome 和 IE 中都有这个.

I want this in both chrome and IE.

推荐答案

可以通过自定义 CSS 规则应用特定的 GridView/Table 布局(正如在 <table><tbody> scrollable? thread) 来修复 GridView 的标题.但是,这种方法不适用于所有浏览器.第三个 ASP.NET GridView 控件(例如 DevExpress 组件供应商的 ASPxGridView) 提供此功能.

It is possible to apply the specific GridView / Table layout via custom CSS rules (as it was discussed in the <table><tbody> 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.

同时检查以下 CodeProject 解决方案:

Check also the following CodeProject solutions:

带有固定标题的网格视图

Gridview 固定标题

这篇关于修复了 GridView Header 在 asp.net 中的水平和垂直滚动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆