一。在gridView或advBandedGridView的每一列的前面加上数字编号实现方法:
在控件的CustomDrawRowIndicator事件中加入如下代码:
if (e.Info.IsRowIndicator && e.RowHandle >= 0)
{
e.Info.DisplayText = e.RowHandle.ToString();
}
即可实现
二.去掉表头的提示数据(drag a column header here to group by that column)
只需将gridView1的属性OptionsView.ShowGroupPanel设置为false即可
this.gridView1.OptionsView.ShowGroupPanel=false;
gridControl控件的使用说明
最新推荐文章于 2023-04-06 14:33:28 发布