1如何禁用GridControl中单击列弹出右键菜单
设置Run Design->OptionsMenu->EnableColumnMenu 设置为:false
2如何定位到第一条数据/记录?
设置 this.gridView.MoveFirst()
3如何定位到最后一条数据/记录?
设置 this.gridView.MoveLast()
4如何让各列头禁止移动?
设置gridView1.OptionsCustomization.AllowColumnMoving = false;
5如何显示行号?
this.gridView1.IndicatorWidth = 40; //显示行的序号 private void gridView1_CustomDrawRowIndicator(object sender, RowIndicatorCustomDrawEventArgs e) { if (e.Info.IsRowIndicator && e.RowHandle>=0) { e.Info.DisplayText = (e.RowHandle + 1).ToString(); } }