gridView显示行号
来源:互联网 发布:eclipse oxygen是java 编辑:程序博客网 时间:2024/06/05 11:30
1、设置显示编号的宽度
IndicatorWidth设置成所适合大小
2、在CustomDrawRowIndicator事件中编写如下代码
#region 设置行号
private void gvUser_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
{
int rowIndex = e.RowHandle;
if(rowIndex>=0)
{
rowIndex++;
e.Info.DisplayText = rowIndex.ToString();
}
e.Info.ImageIndex = -1;
}
#endregion
- CS -- GridView显示行号
- gridView显示行号
- GridView显示行号
- DEV GridView显示行号
- DevExpress gridview 显示行号
- dev gridview显示行号
- 当gridview有一页时如何显示行号
- 当gridview有多页时如何在每一页递增显示行号
- Repeater和Gridview前台显示行号的方法
- Repeater和Gridview前台显示行号的方法
- Gridview中获得行号
- 给GridView添加行号
- 为gridView添加行号
- GRIDVIEW DATABING 自动行号
- Dev GridView 添加行号
- PL/SQL显示行号- Developer 显示行号
- 为GridView添加一个行号
- 为GridView添加一个行号
- 计算所2012年硕士统考生复试拟录取名单
- DevExpress窗体皮肤
- DevExpress GridControl主从表
- android如何调用其他应用的方法或属性
- 用wget做站点镜像
- gridView显示行号
- HDU 2837 Calculation
- 简单线程池的代码实现
- extern作用详解
- 2012年4月7日腾讯实习生笔试题目2
- 使用Apache实现负载均衡
- 点击top回滚到顶部和窗口浮动跟随鼠标上下移动
- Mybatis传递多个参数
- MSSQL DMV查询