gridControl添加行号
来源:互联网 发布:mysql查询时间最近的 编辑:程序博客网 时间:2024/06/06 19:36
//编辑列的行号
private void gvDataInfo_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
if (e.Info.IsRowIndicator && e.RowHandle >= 0)
{
e.Info.DisplayText = (e.RowHandle + 1).ToString();
}
}
private void gvDataInfo_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
{
//修改行号的显示宽度
this.gvDataInfo.IndicatorWidth = 20 * this.dtXT.Rows.Count.ToString().Length;if (e.Info.IsRowIndicator && e.RowHandle >= 0)
{
e.Info.DisplayText = (e.RowHandle + 1).ToString();
}
}
阅读全文
0 0
- gridControl添加行号
- GridControl如何显示行号
- gridcontrol显示行号
- DevExpress GridControl 显示行号、设置行号宽
- DevExpress.XtraGrid.GridControl显示行号
- 如何在devexpress gridcontrol上显示行号
- 如何在devexpress gridcontrol上显示行号
- Devexpress的GridControl如何加入行号显示
- GridControl添加操作列
- DevPress GridControl添加按钮列
- GridControl 控件添加按钮列
- 为数据表添加行号
- dataGridView添加行号
- DataGridView添加行号
- 为datagridView添加行号
- 给GridView添加行号
- 为DataGridView添加行号
- vs2005 DataGridView添加行号
- Codeforces 55D Beautiful numbers 数位DP
- 机器学习基石 4.2 Probability to the Rescue
- 使用递归实现接收用户输入的正整数,输出该数的阶乘
- 32位windows7的theano安装
- 基于display:table的CSS布局
- gridControl添加行号
- 前端SEO技巧
- 00-Thrift简介(官方文档略读)
- Java UML
- 浮动元素自动居中显示
- ubuntu 配置ckermit nfs tftpd-hpa ssh vim ftp wine virtualbox JDK ctags cscope
- jira 6.3.6 破解
- AsyncTask源码解析
- Linux CentOS 7 下 JDK 安装与配置