Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
4032
UltraWinGrid: How capture DEL-key on active cell
posted

I have a ultrawingrid bound to ultradatasource (version 2020.1)

The grid is multiband (depth 2). In band1 users can go into edit mode pressing digit or letter key. Edit Mode is startet in KeyPress-Event if pressed key is digit or letter.

Problem: If user press DEL-Key, the cell text of the active cell gets deleted. How I can trap the DEL-Key? If cell-text is deleted I should do some depending action in related data.

I have tried KeyDown, KeyPress, BeforeCellUpdate, AfterCellUpdate but none of these events gets raised.

Grid InitializeLayout:

e.Layout.Override.AllowAddNew = AllowAddNew.No;
e.Layout.Override.AllowUpdate = Infragistics.Win.DefaultableBoolean.False;
e.Layout.Override.AllowDelete = Infragistics.Win.DefaultableBoolean.False;

e.Layout.Override.SelectTypeCol = SelectType.None;
e.Layout.Override.SelectTypeRow = SelectType.None;
e.Layout.Override.SelectTypeCell = SelectType.None;

e.Layout.Override.CellClickAction = CellClickAction.CellSelect;
e.Layout.Override.HeaderClickAction = HeaderClickAction.Select;

Band 1

band1.Override.CellMultiLine = DefaultableBoolean.True;

band1.Override.SelectTypeCell = SelectType.Extended;

any ideas how to capture the DEL-Key?