Hi Luu Tan Phat,
Your requirement to move the focus to next row while pressing the tab key in
the last column of the previous row in GridGroupingControl can be achieved by
customize the TableControlCurrentCellKeyDown event in
GridGroupingControl. Please refer the below code snippet,
|
this.gridGroupingControl1.TableControlCurrentCellKeyDown +=
OnTableControlCurrentCellKeyDown;
void OnTableControlCurrentCellKeyDown(object sender,
GridTableControlKeyEventArgs e)
{
//here check the currentcell is last column of row
if (e.TableControl.CurrentCell.ColIndex
== e.TableControl.TableDescriptor.GetLastColumnIndex())
{
//her check pressed key is Tab
if (e.Inner.KeyCode
== Keys.Tab)
{
//here move the current
cell to next row of first column
e.TableControl.CurrentCell.MoveTo(e.TableControl.CurrentCell.RowIndex
+ 1, e.TableControl.TableDescriptor.FieldToColIndex(0));
}
}
}
|
UG Link: https://help.syncfusion.com/windowsforms/gridgrouping/getting-started
KB Link: https://www.syncfusion.com/kb/4635/how-to-move-one-control-to-another-by-using-the-tab-key-in-the-winforms-gridgroupingcontrol
Please find the sample in the attachment and let us know if you have any
concerns in this.
Regards,
Vijayarasan S
Attachment:
GridGroupingControldemo_c901dfdc.zip