隐藏GroupPanel
未进行隐藏的效果:
隐藏 Run Disigner —>Views—>OptionsViews—>ShowGroupPanel = False
设置后效果
设置复选框列
效果如下:
代码里面可以设置:
DataTable table = new DataTable();
DataColumn chkColumn = new DataColumn();
chkColumn.DataType = typeof(Boolean);
chkColumn.ColumnName = "是否选择";
chkColumn.DefaultValue = false;
table.Columns.Add(chkColumn);
table.Columns["是否选择"].SetOrdinal(0);
table.Columns.Add("Name", Type.GetType("System.String"));
for (int i = 0; i < 10; i++)
{
DataRow dr = table.NewRow();
dr["Name"] = "77";
dr["是否选择"] = "false";
table.Rows.Add(dr);
}
gridControl1.DataSource = table;