YsTx
  • YsTx
  • Newbie Topic Starter
2022-07-08T10:15:22Z
E.g. the following won't produce the desired behaviour of opening up an AutoFilter window :::
private void iGrid_KeyDown (object sender, KeyEventArgs e) {
      switch (e.KeyCode) {
        case Keys.F3:
          igAutoFilterManager1.ColAutoFilter(1); // Well, not fit to purpose.
          e.Handled = true;
          break;
      }
    }
So what can I possibly do in order to get an AutoFilter window popping up from a keyboard action, without having to mouse-point-and-shoot a column header button ?
This question of mine is probably due to a serious lack of C# expertise, but please help ?
Or where should I look in documentation, or in Help, or in examples ?
Thanx in advance !
P.S. :: https://10tec.com/winforms-grid/autofilter.aspx  => states the following :::
9. A column's filter box itself can be opened from the grid using a key or key combination defined by the developer.
=> OK, but how ?
YsTx
  • YsTx
  • Newbie Topic Starter
2022-07-08T13:14:44Z
The answer is in the Demo.
10Tec's iGrid AutoFilter Demo 
[img=https://imgur.com/a/IrfnLYh]10Tec's iGrid AutoFilter Demo[/img]
x:\10Tec\iGrid.NET\10.1.8\Sources\Demo\iGrid Demo C#\Samples\2. Remarkable Features\AutoFilterTester.cs :::
private void fGrid_KeyDown (object sender, KeyEventArgs e) {
			// Here we can open up the AutoFilter box bmo a keystroke ::: E.g. :::
			if (e.KeyData == Keys.F3) {
				e.Handled = true;
				if (fGrid.CurCell != null)
					fAutoFilterManager.ColAutoFilter (fGrid.CurCell.ColIndex).ShowFilterBox();
			}
		}