首页 > 代码库 > GridControl属性

GridControl属性

1、设置成一次选择一行,并且不能被编辑

GridView.FocusRectStyle = DevExpress.XtraGrid.Views.Grid.DrawFocusRectStyle.RowFocus;

GridView.OptionsBehavior.Editable = false;

GridView.OptionsSelection.EnableAppearanceFocusedCell = false;

2、展开分组

GridView.OptionsBehavior.AutoExpandAllGroups = true;  //false

 

GridControl属性