ggc - bringing current record to display

Hi everybody,

In one of my ggc grids I had to overwrite TableControlKeyDown and to set e.Inner.Handled to true.
(I really have no choice, because I have to display and navigate row-clusters of uneven sizes (see the attached image), and if I don't set e.Inner.Handled to true, there's an interfearence with the display)

As a result, the ggc doesn't auto-scroll the display and the record that's set to current (within TableControlKeyDown) sometimes gets out of the grid display area.

What can I do to force the current record back to the display area ?


Thanks in advance.


ClusteredRows.zip

1 Reply

HA haneefm Syncfusion Team May 7, 2007 05:32 PM UTC

Hi Ryan,

If you want to scroll the record into view then use the ScrollCellInView method. Here is a code snippet.

//Getting a rowindex given the record index
int position = gridGroupingControl1.Table.DisplayElements.IndexOf(record);
this.gridGroupingControl1.TableControl.ScrollCellInView(GridRangInfo.Row(position));

Also refer the below forum thread for more details.

Best regards,
Haneef

Loader.
Up arrow icon