예제 #1
0
 private void lstPart_AfterCellUpdated(object sender, TreeListAfterCellUpdatedEventArgs e)
 {
     if ((int)e.Cell.Item.Tag == 0 && e.EnterKey)
     {
         e.EnterKey = false;
     }
 }
예제 #2
0
        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);
            }
        }