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.

Positioning the scrollbar in GroupingGrid control

Thread ID:

Created:

Updated:

Platform:

Replies:

42660 Apr 4,2006 06:21 AM Apr 11,2006 10:28 AM Windows Forms 4
loading
Tags: GridControl
Prathima Venkobachar
Asked On April 4, 2006 06:21 AM

Hi, In our application, we are using GroupingGrid control. We have around 100 records in the grid. Once we move the scrollbar to the bottom of the screen and try to edit the record at the last, scrollbar moves up & then placed in the previous position. We need to avoid the movement of scrollbar. Which property or method can be used to avoid the same? The below steps are followed while updating the grid. GroupingGrid_RecordValueChanging event is triggered and in this event we are using the following statements to avoid flickering. groupingGrid.OverlayCurrentScreenShotfalse); groupingGrid.IgnoreCurrentCellActivatedEvent = true; Then we are caching the groups which are expanded and vertical and horizontal positions of the scrollbar. Then we are updating the data in the datasource of the GroupingGrid. Then refresh the GroupingGrid.SyncfusionGridControl and then expand the grid. Now we are setting the focus to the grid and then apply the vertical and horizontal positions of the scrollbar which is cached already. Thanks & Regards, Prathima.

Administrator [Syncfusion]
Replied On April 4, 2006 10:26 AM

Hi Prathima, You can avoid this problem, by moving the current cell to the cached cell. Here is the code snippet. if(row != -1 && col != -1) { this.gridGroupingControl1.TableControl.CurrentCell.MoveTo(row,col,GridSetCurrentCellOptions.SetFocus); this.gridGroupingControl1.TableControl.CurrentCell.BeginEdit(); } else { this.gridGroupingControl1.TableControl.TopRowIndex = index; this.gridGroupingControl1.TableControl.LeftColIndex = indexc; } Let us know if you need any further information. Best regards, Madhan

Prathima Venkobachar
Replied On April 6, 2006 07:30 AM

Hi, When we are expanding the grid, we are adding RecordFilterDescriptor to RecordFilterDescriptorCollection. Once we add, the scrollbar flickering happens. If there is no filter, it works fine. Is there any property or method in filter to avoid this? Regards, Prathima.

Prathima Venkobachar
Replied On April 6, 2006 07:30 AM

Hi, When we are expanding the grid, we are adding RecordFilterDescriptor to RecordFilterDescriptorCollection. Once we add, the scrollbar flickering happens. If there is no filter, it works fine. Is there any property or method in filter to avoid this? Regards, Prathima.

Administrator [Syncfusion]
Replied On April 11, 2006 10:28 AM

Hi Prathima, I am really sorry for the delayed response. Try calling the this.gridGroupingControl1.TableControl.BeginUpdate(); before adding the RecordFilterDescriptor and moving the current cell to the cached cell and this.gridGroupingControl1.TableControl.EndUpdate(false); after that to see if that helps. Below is a code snippet. this.gridGroupingControl1.TableControl.BeginUpdate(); this.gridGroupingControl1.TableDescriptor.RecordFilters.Add(recordFilterDescriptor); this.gridGroupingControl1.TableControl.TopRowIndex = indexX; this.gridGroupingControl1.TableControl.LeftColIndex = indexY; this.gridGroupingControl1.TableControl.EndUpdate(false); Regards, Calvin.

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.

;