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.

Scrollbar issue with virtual grid

Thread ID:

Created:

Updated:

Platform:

Replies:

44335 May 22,2006 04:20 AM May 23,2006 07:48 AM Windows Forms 6
loading
Tags: GridControl
Albie
Asked On May 22, 2006 04:20 AM

I have an issue with the virtual grid, version 3.2.1.0: If I place the grid on a control and doc the grid to the top and then set autoscroll of the control to true, I can use the control''s scrollbars to scroll up and down the grid control. The problem arises when I scroll down several pages and then click on a combobox to expand it. The Control''s scrollbar then jumps to the top and the combobox renderer draws the expanded combobox in the wrong location. Please refer to the small example attached. The relevant form is form2. Thank you Albie

ScrollbarIssue.zip

Administrator [Syncfusion]
Replied On May 22, 2006 05:44 AM

Hi Albie, Setting the current cell position to the button clicked cell in the gridControl’s CellButtonClicked event handler (in the UserControl1 class) will solve the mentioned issue. Below is the code snippet. private void gridControl1_CellButtonClicked(object sender, Syncfusion.Windows.Forms.Grid.GridCellButtonClickedEventArgs e) { this.gridControl1.CurrentCell.SetPositionNoActivate(e.RowIndex,e.ColIndex); } Regards, Calvin.

Albie
Replied On May 23, 2006 04:23 AM

Thank you Calvin, for the helpful hint. This does work on the example that I sent you, but I have modified the example solution to better represent my setup. The Control, now consists out of a grid, with a tab just below it that also contains a grid. The problem is that when I select a cell in the top grid and then scroll down and select a cell in the bottom grid (contained in the tab) the scrollbar jumps to the top. The same also happens if I select a cell in the bottom grid and then select a cell in the top grid. Any ideas on this? Regards Albie

ScrollIssue2.zip

Albie
Replied On May 23, 2006 04:24 AM

Thank you Calvin, for the helpful hint. This does work on the example that I sent you, but I have modified the example solution to better represent my setup. The Control, now consists out of a grid, with a tab just below it that also contains a grid. The problem is that when I select a cell in the top grid and then scroll down and select a cell in the bottom grid (contained in the tab) the scrollbar jumps to the top. The same also happens if I select a cell in the bottom grid and then select a cell in the top grid. Any ideas on this? Regards Albie

ScrollIssue20.zip

Albie
Replied On May 23, 2006 04:24 AM

Thank you Calvin, for the helpful hint. This does work on the example that I sent you, but I have modified the example solution to better represent my setup. The Control, now consists out of a grid, with a tab just below it that also contains a grid. The problem is that when I select a cell in the top grid and then scroll down and select a cell in the bottom grid (contained in the tab) the scrollbar jumps to the top. The same also happens if I select a cell in the bottom grid and then select a cell in the top grid. Any ideas on this? Regards Albie

ScrollIssue21.zip

Albie
Replied On May 23, 2006 04:24 AM

Thank you Calvin, for the helpful hint. This does work on the example that I sent you, but I have modified the example solution to better represent my setup. The Control, now consists out of a grid, with a tab just below it that also contains a grid. The problem is that when I select a cell in the top grid and then scroll down and select a cell in the bottom grid (contained in the tab) the scrollbar jumps to the top. The same also happens if I select a cell in the bottom grid and then select a cell in the top grid. Any ideas on this? Regards Albie

ScrollIssue22.zip

Administrator [Syncfusion]
Replied On May 23, 2006 07:48 AM

Hi Albie, This is a default functionality of Windows Forms and the .NET Framework. Try the attached user control which has two multi line text boxes in the place of the grid and the same behavior can be seen. Regards, Calvin.

UserControl1.zip

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.

;