private void C1TrueDBGridViewCommandStateQuery( object sender, CommandStateQueryEventArgs e) { DataViewEnum dv = (DataViewEnum)Enum.Parse(typeof(DataViewEnum), (string)((C1Command)sender).UserData); e.Pressed = _trueGridOptions.DataView == dv; }
private void C1TrueDBGridViewCommandClick( object sender, ClickEventArgs e) { DataViewEnum dv = (DataViewEnum)Enum.Parse(typeof(DataViewEnum), (string)((C1Command)sender).UserData); _trueGridOptions.DataView = dv; UpdateControls(); }