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.

GridGroupingControl - Verical Scroll Bar with Record Preview Row

Thread ID:

Created:

Updated:

Platform:

Replies:

44655 May 31,2006 05:27 AM Jun 2,2006 12:17 AM Windows Forms 3
loading
Tags: GridControl
Badri Rajani Kanth
Asked On May 31, 2006 05:27 AM

Hi, We are using Syncfusion v 3.2.1.0. I have a GGC with record preview row being toggled on/off. When i have more records, I see a vertical scrollbar in the grid. When preview is OFF, click on a record and pressing down arrow key will scroll the VScrollBar down, which is correct. But when preview is ON, VScrollBar is not moving down and selected record is not visible to the user. But record selection is happening correctly. I think it is only about moving the VScrollBar. Can you please help me in this? Rgds Rajani Kanth

Administrator [Syncfusion]
Replied On May 31, 2006 05:38 AM

Hi Rajani, You need to scroll the currentcell into view after preview is ON. Here is a code snippet. GridCurrentCell cc = this.grid.TableControl.CurrentCell; this.grid.TableControl.ScrollCellInView(cc.RowIndex,cc.ColIndex); Please let me know if this helps. Regards, Haneef

Badri Rajani Kanth
Replied On June 1, 2006 10:20 AM

Hi Haneef, I tried using that. But still the sam problem. Can you plz look into this again? Rgds Rajani Kanth

Administrator [Syncfusion]
Replied On June 2, 2006 12:17 AM

Hi Rajani, Sorry for the inconvenience caused. Try this code to scroll the current cell into view. Here is a code snippet if(IsPreview) { IsPreview = false; this.gridGroupingControl1.TableDescriptor.TableOptions.ShowRecordPreviewRow = false; GridCurrentCell cc = this.gridGroupingControl1.TableControl.CurrentCell; this.gridGroupingControl1.TableControl.ScrollCellInView(cc.RowIndex,cc.ColIndex); } else { IsPreview = true; this.gridGroupingControl1.TableDescriptor.TableOptions.ShowRecordPreviewRow = true; //Extra one row added for each row.... so you need to scroll the two times of the current rowIndex. GridCurrentCell cc = this.gridGroupingControl1.TableControl.CurrentCell; this.gridGroupingControl1.TableControl.ScrollCellInView(cc.RowIndex * 2,cc.ColIndex); } Here is a sample. http://www.syncfusion.com/Support/user/uploads/PreviewRow_ccb4c1f4.zip Please let me know if this helps. 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.

;