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();
                }
            }
        }
Example #2
0
 /// <summary>
 /// Sets all items in the list to be unchecked.
 /// </summary>
 public void CheckNone()
 {
     ListViewHelper.CheckAll(this, false);
 }
Example #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);
        }
Example #4
0
 /// <summary>
 /// Sets all items in the list to be checked.
 /// </summary>
 public void CheckAll()
 {
     ListViewHelper.CheckAll(this, true);
 }
Example #5
0
 public void SelectNone()
 {
     ListViewHelper.SelectAll(this, false);
 }
Example #6
0
 public void SelectAll()
 {
     ListViewHelper.SelectAll(this, true);
 }
Example #7
0
 protected override void OnKeyDown(KeyEventArgs e)
 {
     base.OnKeyDown(e);
     ListViewHelper.HandleKeyDown(this, e);
 }
Example #8
0
 public void AutoSizeColumns()
 {
     ListViewHelper.AutoSizeColumns(this);
 }