Hi Patrick,
Thanks for your interest in Syncfusion products.
Apologies for the delay.
This feature can be achieved by means of TableControlMoveCurrentCellDirection event handler in GridGroupingControl.
Here is the codesnippet,
private void gridGroupingControl1_TableControlMoveCurrentCellDirection(object sender,GridTableControlMoveCurrentCellDirectionEventArgs e)
{
GridTableCellStyleInfo style = e.TableControl.Model[e.Inner.RowIndex, e.Inner.ColIndex];
int lastPos = style.TableCellIdentity.Table.TableDescriptor.VisibleColumns.Count - 1;
string lastName = style.TableCellIdentity.Table.TableDescriptor.VisibleColumns[lastPos].Name;
if(style.TableCellIdentity.Column.MappingName == lastName && e.Inner.Direction == GridDirectionType.Right)
{
Element el = style.TableCellIdentity.DisplayElement;
if(el != null)
{
GridRecord rec = el.ParentRecord as GridRecord;
int index = style.TableCellIdentity.Table.FilteredRecords.IndexOf(rec);
if(index < style.TableCellIdentity.Table.FilteredRecords.Count - 1)
{
rec = style.TableCellIdentity.Table.FilteredRecords[index + 1] as GridRecord;
rec.SetCurrent(style.TableCellIdentity.Table.TableDescriptor.VisibleColumns[0].Name);
e.Inner.Handled = true;
e.Inner.Result = true;
}
}
}
}
Please refer the following sample.
http://websamples.syncfusion.com//samples/Grid.Windows/F77421/main.htmPlease let me know if this helps.
Regards,
Rajadurai