Пример #1
0
        private void PropertyListSubItemClickHandler(object sender, SubItemEventArgs e)
        {
            ListViewSubItemEx subEx = e.Item.SubItems[e.SubItem] as ListViewSubItemEx;

            if (subEx != null && subEx.ReadOnly)
            {
                return;
            }

            TextBox econtrol = new TextBox {
                Parent = this, TabStop = false
            };

            _propertyList.StartEditing(econtrol, e.Item, e.SubItem);
        }
Пример #2
0
        private void BeginEditing(ListViewItem item, int index)
        {
            ListViewSubItemEx subEx = item.SubItems[index] as ListViewSubItemEx;

            if (subEx != null && subEx.ReadOnly)
            {
                return;
            }

            TextBox econtrol = new TextBox {
                Parent = this, TabStop = false
            };

            _propertyList.StartEditing(econtrol, item, index);
        }