固定的GridView头在asp.net水平和垂直滚动 [英] Fixed GridView Header with horizontal and vertical scrolling in asp.net

查看:118
本文介绍了固定的GridView头在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布局(因为它是在<一个讨论href=\"http://stackoverflow.com/questions/5345390/tabletbody-scrollable/5345479#5345479\"><table><tbody>滚动?线程)厘定GridView的头。但是,这种方法将无法正常工作在所有浏览器。 三次ASP.NET GridView的控制(如ASPxGridView从DevEx preSS组件供应商提供此功能。

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.

检查还包括以下$ C $的CProject解决方案:

Check also the following CodeProject solutions:

的GridView固定头

的GridView固定头

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

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