Ejemplo n.º 1
0
 private void listViewEx1_SubItemClicked(object sender, ListViewEx.SubItemEventArgs e)
 {
     if (pmenu1.Checked == true)
     {
         listViewEx1.StartEditing(textBoxComment, e.Item, e.SubItem);
     }
     else
     {
         listViewEx1.StartEditing(cboitem, e.Item, e.SubItem);
     }
 }
Ejemplo n.º 2
0
 private void listViewEx1_SubItemClicked(object sender, ListViewEx.SubItemEventArgs e)
 {
     if (e.SubItem == 0)
     {
         old = e.Item.SubItems[0].Text;
         //MessageBox.Show(e.Item.Index.ToString());
         mem     = e.Item.Index;
         memcopy = mem;
         listViewEx1.StartEditing(Editors[0], e.Item, 0);
     }
     if (e.SubItem == 4)
     {
         old2 = e.Item.SubItems[4].Text;
         //MessageBox.Show(e.Item.Index.ToString());
         num = e.Item.Index;
         listViewEx1.StartEditing(Editors[1], e.Item, 4);
     }
 }
Ejemplo n.º 3
0
        void lvMain_SubItemClicked(object sender, ListViewEx.SubItemEventArgs e)
        {
            ColumnHeader ch = null;

            for (int i = 0; i < lvMain.Columns.Count; ++i)
            {
                if (i == e.SubItem)
                {
                    ch = lvMain.Columns[i];
                }
            }
            Debug.Assert(ch != null);

            ei_.Clear();
            ei_.Initial = e.Item.SubItems[e.SubItem].Text;
            Control edittingControl = GetEdittingControl(ch);

            lvMain.StartEditing(edittingControl, e.Item, e.SubItem);
        }
Ejemplo n.º 4
0
        private void listViewEx1_SubItemClicked(object sender, ListViewEx.SubItemEventArgs e)
        {
            if (e.SubItem == 3)             // Password field
            {
                // the current value (text) of the subitem is ****, so we have to provide
                // the control with the actual text (that's been saved in the item's Tag property)
                e.Item.SubItems[e.SubItem].Text = e.Item.Tag.ToString();
            }

            listViewEx1.StartEditing(Editors[e.SubItem], e.Item, e.SubItem);
        }