抄袭过来的,作为自己收藏!
2005-08-30 19:31
423 查看
冻结DataGrid中的列的比较简单的实现方法!
<style type="text/css">
</style>
<DIV style="Z-INDEX: 102; LEFT: 264px; OVERFLOW: auto; WIDTH: 184px; POSITION: relative; TOP: 128px; HEIGHT: 216px"
ms_positioning="GridLayout">
<asp:DataGrid id="DataGrid1" style="Z-INDEX: 103" runat="server" BorderColor="#DEBA84" BorderStyle="None"
BorderWidth="1px" BackColor="#DEBA84" CellPadding="0" AutoGenerateColumns="False">
<SelectedItemStyle Font-Bold="True" ForeColor="White" BackColor="#738A9C"></SelectedItemStyle>
<ItemStyle ForeColor="#8C4510" BackColor="#FFF7E7"></ItemStyle>
<HeaderStyle Font-Bold="True" ForeColor="White" BackColor="#A55129"></HeaderStyle>
<FooterStyle ForeColor="#8C4510" BackColor="#F7DFB5"></FooterStyle>
<Columns>
<asp:BoundColumn DataField="IntegerValue" HeaderText="IntegerValue" HeaderStyle-CssClass ="fixCol" ItemStyle-CssClass="fixCol"></asp:BoundColumn>
<asp:BoundColumn DataField="StringValue" HeaderText="StringValue"></asp:BoundColumn>
<asp:BoundColumn DataField="CurrencyValue" HeaderText="CurrencyValue"></asp:BoundColumn>
</Columns>
<PagerStyle HorizontalAlign="Center" ForeColor="#8C4510" Mode="NumericPages"></PagerStyle>
</asp:DataGrid></DIV>
<style type="text/css">
</style>
<DIV style="Z-INDEX: 102; LEFT: 264px; OVERFLOW: auto; WIDTH: 184px; POSITION: relative; TOP: 128px; HEIGHT: 216px"
ms_positioning="GridLayout">
<asp:DataGrid id="DataGrid1" style="Z-INDEX: 103" runat="server" BorderColor="#DEBA84" BorderStyle="None"
BorderWidth="1px" BackColor="#DEBA84" CellPadding="0" AutoGenerateColumns="False">
<SelectedItemStyle Font-Bold="True" ForeColor="White" BackColor="#738A9C"></SelectedItemStyle>
<ItemStyle ForeColor="#8C4510" BackColor="#FFF7E7"></ItemStyle>
<HeaderStyle Font-Bold="True" ForeColor="White" BackColor="#A55129"></HeaderStyle>
<FooterStyle ForeColor="#8C4510" BackColor="#F7DFB5"></FooterStyle>
<Columns>
<asp:BoundColumn DataField="IntegerValue" HeaderText="IntegerValue" HeaderStyle-CssClass ="fixCol" ItemStyle-CssClass="fixCol"></asp:BoundColumn>
<asp:BoundColumn DataField="StringValue" HeaderText="StringValue"></asp:BoundColumn>
<asp:BoundColumn DataField="CurrencyValue" HeaderText="CurrencyValue"></asp:BoundColumn>
</Columns>
<PagerStyle HorizontalAlign="Center" ForeColor="#8C4510" Mode="NumericPages"></PagerStyle>
</asp:DataGrid></DIV>
相关文章推荐
- 朋友收藏的一些站点,自己觉得还不错就拿过来用了。
- 360与腾讯之争,作为程序员,是愿意自己的项目进入市场得到些成功就被腾讯抄袭,还是软件刚一发布出去,就被360查杀?
- 【强烈谴责】博客园园友随意抄袭他人文章并作为自己原创的行为
- 360与腾讯之争,作为程序员,是愿意自己的项目进入市场得到些成功就被腾讯抄袭,还是软件刚一发布出去,就被360查杀?
- 【强烈谴责】博客园园友随意抄袭他人文章并作为自己原创的行为
- 关于code review 很好的一篇文章,收藏过来时刻警示自己
- 今天第一次开始写博客,作为新入门的程序员记录自己的学习工作中的问题。
- 作为渡过小白期的android程序员 就写写自己d感想吧。
- (转)“领导者”沈南鹏:逼着自己不断思考,作为VC没有选择
- VI基本命令(呵呵,转过来方便自己查阅)
- 服务器端学习(一) 如何把自己的电脑作为网站服务器
- 复杂的 DataBinding 接受 IList 或 IListSource 作为数据源" 错误原来是自己的笔误
- 作为工程师一定要了解的常用接口大全(收藏版)
- c#动态编译,自己做了个c#脚本管理框架,可以作为其他应用的插件使用。增强程序的拓展性
- STL之定义自己的判断式(predicate)作为算法的参数
- java相关的下载链接,自己收藏的
- 看到一篇【自己动手写神经网络】,转过来
- 作为一名基层管理者如何利用情商管理自己和团队(一)
- datagridview 列 纵向合并 ,看了别人的源码拿过来自己搞搞
- 从百度上抄袭过来的Mac终端命令指南