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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridGroupingControl - Verical Scroll Bar with Record Preview Row

Thread ID:





44655 May 31,2006 09:27 AM UTC Jun 2,2006 04:17 AM UTC WinForms 3
Tags: GridControl
Badri Rajani Kanth
Asked On May 31, 2006 09:27 AM UTC

Hi, We are using Syncfusion v 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 09:38 AM UTC

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 02:20 PM UTC

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 04:17 AM UTC

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


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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon 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.Close Icon