// 列头显示
this.gridView1.OptionsView.ShowColumnHeaders = true;
//去掉列头上面的文字
this.gridView1.OptionsView.ShowGroupPanel = false;
//各列头禁止移动
this.gridView1.OptionsCustomization.AllowColumnMoving = false;
//各列头禁止排序
this.gridView1.OptionsCustomization.AllowSort = false;
//屏蔽列头上的右击事件
this.gridView1.OptionsMenu.EnableColumnMenu = false;
//绑定数据集
this.gridControl1.DataSource = dt;
//各列头禁止改变列宽
//gridView1.OptionsCustomization.AllowColumnResizing = false;
//gridView2
// 列头显示
//gridView2.OptionsView.ShowColumnHeaders = true;
去掉列头上面的文字
//gridView2.OptionsView.ShowGroupPanel = false;
各列头禁止移动
//gridView2.OptionsCustomization.AllowColumnMoving = false;
各列头禁止排序
//gridView2.OptionsCustomization.AllowSort = false;
各列头禁止改变列宽
//gridView2.OptionsCustomization.AllowColumnResizing = false;
gridView3
列头显示
//gridView3.OptionsView.ShowColumnHeaders = true;
去掉列头上面的文字
//gridView3.OptionsView.ShowGroupPanel = false;
各列头禁止移动
//gridView3.OptionsCustomization.AllowColumnMoving = false;
各列头禁止排序
//gridView3.OptionsCustomization.AllowSort = false;
各列头禁止改变列宽
//gridView3.OptionsCustomization.AllowColumnResizing = false;
gridView4
列头显示
//gridView4.OptionsView.ShowColumnHeaders = true;
去掉列头上面的文字
//gridView4.OptionsView.ShowGroupPanel = false;
各列头禁止移动
//gridView4.OptionsCustomization.AllowColumnMoving = false;
各列头禁止排序
//gridView4.OptionsCustomization.AllowSort = false;
各列头禁止改变列宽
//gridView4.OptionsCustomization.AllowColumnResizing = false;
this.gridView1.Columns[2].OptionsColumn.AllowEdit = true;
//设置对齐方式
gridView1.Columns[2].AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
//循环屏蔽排序
for (int i = 0; i < 8; i++)
{
this.gridView1.Columns[i].OptionsFilter.AllowFilter = false;
this.gridView1.Columns[i].OptionsFilter.AllowAutoFilter = false;
}