Firstly, I would like to note that for GridViewGroupRowInfos
offers a specific row behavior
for handling the mouse/keyboard input: GridGroupRowBehavior
. If you want to handle pressing Enter key when the group row is current, it is more appropriate to use it:
BaseGridBehavior gridBehavior = this.radGridView1.GridBehavior as BaseGridBehavior;
gridBehavior.RegisterBehavior(typeof(GridViewDataRowInfo), new CustomGridRowBehavior());
gridBehavior.RegisterBehavior(typeof(GridViewGroupRowInfo), new CustomGridGroupRowBehavior());
public class CustomGridGroupRowBehavior : GridGroupRowBehavior
protected override bool ProcessEnterKey(KeyEventArgs keys)
You can plug into the above code and execute the desired logic.
As to the question about checking the CurrentRow's type, please have a look at this code snippet:
if (this.GridControl.CurrentRow is GridViewGroupRowInfo)
Should you have further questions please let me know.
Dess | Tech Support Engineer, Sr.