private void buttonColumnColumnProperties_Click(object sender, EventArgs e) { ButtonEdit editor = (ButtonEdit)sender; ISimpleBusinessAction order = gridListEditor.GridView.GetFocusedRow() as ISimpleBusinessAction; if (order != null) { order.SimpleBusinessAction(); UpdateButtons(editor.Properties, order.Active); } }
private void gridView_CustomRowCellEdit(object sender, CustomRowCellEditEventArgs e) { if (e.Column.FieldName == ButtonColumnName) { ISimpleBusinessAction order = gridListEditor.GridView.GetRow(e.RowHandle) as ISimpleBusinessAction; if (order != null) { RepositoryItemButtonEdit item = defaultButtonColumnColumnProperties.Clone() as RepositoryItemButtonEdit; UpdateButtons(item, order.Active); e.RepositoryItem = item; } } }