private void lstPart_AfterCellUpdated(object sender, TreeListAfterCellUpdatedEventArgs e) { if ((int)e.Cell.Item.Tag == 0 && e.EnterKey) { e.EnterKey = false; } }
private void lstObject_AfterCellUpdated(object sender, TreeListAfterCellUpdatedEventArgs e) { var obj = e.Cell.Item.Tag; if (obj is Table) { var table = obj as Table; table.Description = e.NewValue.ToString(); } else if (obj is Column) { var column = obj as Column; column.Description = e.NewValue.ToString(); } if (SelectItemAct != null) { SelectItemAct(obj); } }