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); }
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); }