protected override void OnKeyDown(KeyEventArgs e)
        {
            base.OnKeyDown(e);

            // handle...
            ListViewHelper.HandleKeyDown(this, e);

            // handled?
            if (!(e.Handled))
            {
                // return?  select the node and set focus back to us...
                if (e.KeyCode == Keys.Return)
                {
                    SelectNode();
                    this.Focus();
                }
            }
        }
Beispiel #2
0
 /// <summary>
 /// Sets all items in the list to be unchecked.
 /// </summary>
 public void CheckNone()
 {
     ListViewHelper.CheckAll(this, false);
 }
Beispiel #3
0
        // mbr - 06-04-2006 - implemented on base.
//		/// <summary>
//		/// Sets all items in the list to be Selected.
//		/// </summary>
//		public void SelectAll()
//		{
//			ListViewHelper.SelectAll(this, true);
//		}
//
//		/// <summary>
//		/// Sets all items in the list to be unSelected.
//		/// </summary>
//		public void SelectNone()
//		{
//			ListViewHelper.SelectAll(this, false);
//		}
//
//		/// <summary>
//		/// Sets all items in the list to be checked.
//		/// </summary>
//		public void CheckAll()
//		{
//			ListViewHelper.CheckAll(this, true);
//		}
//
//		/// <summary>
//		/// Sets all items in the list to be unchecked.
//		/// </summary>
//		public void CheckNone()
//		{
//			ListViewHelper.CheckAll(this, false);
//		}

        // mbr - 06-04-2006 - implemented on base.
//		/// <summary>
//		/// Autosizes all columns.
//		/// </summary>
//		public void AutoSizeColumns()
//		{
//			ListViewHelper.AutoSizeColumns(this);
//		}

        /// <summary>
        /// Autosizes the column.
        /// </summary>
        /// <param name="header"></param>
        public void AutoSizeColumn(ColumnHeader header)
        {
            ListViewHelper.AutoSizeColumn(this, header);
        }
Beispiel #4
0
 /// <summary>
 /// Sets all items in the list to be checked.
 /// </summary>
 public void CheckAll()
 {
     ListViewHelper.CheckAll(this, true);
 }
Beispiel #5
0
 public void SelectNone()
 {
     ListViewHelper.SelectAll(this, false);
 }
Beispiel #6
0
 public void SelectAll()
 {
     ListViewHelper.SelectAll(this, true);
 }
Beispiel #7
0
 protected override void OnKeyDown(KeyEventArgs e)
 {
     base.OnKeyDown(e);
     ListViewHelper.HandleKeyDown(this, e);
 }
Beispiel #8
0
 public void AutoSizeColumns()
 {
     ListViewHelper.AutoSizeColumns(this);
 }