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