#region 自动列宽
for (int I = 0; I < gridView1.Columns.Count; I++)
{
this.gridView1.BestFitColumns();
this.gridView1.Columns[I].BestFit();//自动列宽
}
#endregion
#region 单元、行、checkbox选中和多选
gridView1.OptionsSelection.MultiSelect = true;

gridView1.OptionsSelection.MultiSelectMode = DevExpress.XtraGrid.Views.Grid.GridMultiSelectMode.CellSelect;
#endregion

相关文章:

  • 2021-10-23
  • 2022-12-23
  • 2021-06-16
  • 2021-09-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-08
猜你喜欢
  • 2022-12-23
  • 2021-07-12
  • 2022-12-23
  • 2021-05-23
  • 2022-01-23
  • 2021-07-20
  • 2022-12-23
相关资源
相似解决方案