Добрый день.
А стандартный конструктор чем не устраивает?
Код:
public class MyDataGridEh : DataGridEh
{
public MyDataGridEh()
{
AllowedOperations.AddRecord = false;
AllowedOperations.ChangeRecord = false;
AllowedOperations.DeleteRecord = false;
ColumnOptions.AllowShowEditor = false;
ColumnOptions.CacheDisplayValues = false;
EditActions.ConfirmDelete = false;
EditActions.CopyEnabled = false;
EditActions.CutEnabled = false;
EditActions.DeleteEnabled = false;
EditActions.PasteEnabled = false;
EditActions.SelectAllEnabled = false;
EmptyDataInfo.Active = true;
KeyboardOptions.EnterKeyAction = GridKeyboardAction.None;
KeyboardOptions.F2KeyAction = GridKeyboardAction.None;
KeyboardOptions.TabKeyAction = GridKeyboardAction.NextRowCell;
RowOptions.AllowResize = true;
IndicatorColumn.ShowRecNo = false;
IndicatorColumn.ShowRowIndicator = false;
IndicatorColumn.ShowRowselCheckboxes = true;
SearchBox.Enabled = true;
SearchBox.FilterOnTyping = true;
Selection.AllowedSelection.All = false;
Selection.AllowedSelection.Cells = false;
Selection.AllowedSelection.Columns = false;
Selection.KeepSelection = true;
Title.HeightOptions.AutoExpand = true;
Title.HorzAlign = System.Windows.Forms.HorizontalAlignment.Center;
Title.MultiTitle.Active = true;
Title.SortMarking.MultiSortMarkable = true;
Title.SortMarking.SortMarkable = true;
Title.SortMarking.SortSide = DataGridSortSide.DataGrid;
ReadOnly = true;
}
}