private void C1FlexGridViewCommandStateQuery( object sender, CommandStateQueryEventArgs e) { FlexViewModeEnum vm = (FlexViewModeEnum)Enum.Parse(typeof(FlexViewModeEnum), (string)((C1Command)sender).UserData); e.Pressed = _flexGridOptions.ViewMode == vm; }
private void C1FlexGridViewCommandClick( object sender, ClickEventArgs e) { FlexViewModeEnum vm = (FlexViewModeEnum)Enum.Parse(typeof(FlexViewModeEnum), (string)((C1Command)sender).UserData); _flexGridOptions.ViewMode = vm; UpdateControls(); }