We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

ggc - bringing current record to display

Thread ID:

Created:

Updated:

Platform:

Replies:

60490 May 7,2007 04:24 AM May 7,2007 01:32 PM Windows Forms 1
loading
Tags: GridControl
Ryan Hardoon
Asked On May 7, 2007 04:24 AM

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

haneefm [Syncfusion]
Replied On May 7, 2007 01:32 PM

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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;