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

AppGrid, ScrollToControl

Thread ID:





94377 May 10,2010 06:17 PM UTC May 23,2010 02:10 PM UTC WinForms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On May 10, 2010 06:17 PM UTC

Occasionally, a parent panel containing a Grid (GridDataBoundGrid) will attempt to scroll to the location of a GridTextBoxControl but the GridTextBoxControl has a location of 1000, 1000 - the panel scrolls itself to the bottom and neither the grid or the cell are visible.
The stack trace is below (hope the formating is OK). Close to the bottom is this step:
Syncfusion.Windows.Forms.Grid.GridTextBoxControl.WndProc(ref System.Windows.Forms.Message msg = {msg=0x7 (WM_SETFOCUS)
and I'm wondering how it gets bubbled up to the parent panel.

> CityView.AppUIWinForm.dll!CityView.AppUIWinForm.Sheet.ScrollToControl(System.Windows.Forms.Control activeControl = {Text = "PLApplication"}) Line 557 C#
System.Windows.Forms.dll!System.Windows.Forms.ScrollableControl.ScrollControlIntoView(System.Windows.Forms.Control activeControl) + 0x88 bytes
System.Windows.Forms.dll!System.Windows.Forms.ContainerControl.ScrollActiveControlIntoView() + 0x2f bytes
System.Windows.Forms.dll!System.Windows.Forms.ContainerControl.ActivateControlInternal(System.Windows.Forms.Control control, bool originator) + 0x9b bytes
System.Windows.Forms.dll!System.Windows.Forms.ContainerControl.ActivateControlInternal(System.Windows.Forms.Control control) + 0x7 bytes
System.Windows.Forms.dll!System.Windows.Forms.Control.WmSetFocus(ref System.Windows.Forms.Message m = {msg=0x7 (WM_SETFOCUS) hwnd=0x13143a wparam=0x0 lparam=0x0 result=0x0}) + 0x71 bytes
System.Windows.Forms.dll!System.Windows.Forms.Control.WndProc(ref System.Windows.Forms.Message m) + 0x4fe bytes
System.Windows.Forms.dll!System.Windows.Forms.TextBoxBase.WndProc(ref System.Windows.Forms.Message m) + 0x37 bytes
System.Windows.Forms.dll!System.Windows.Forms.RichTextBox.WndProc(ref System.Windows.Forms.Message m) + 0x49 bytes
Syncfusion.Grid.Windows.dll!Syncfusion.Windows.Forms.Grid.GridTextBoxControl.WndProc(ref System.Windows.Forms.Message msg = {msg=0x7 (WM_SETFOCUS) hwnd=0x13143a wparam=0x0 lparam=0x0 result=0x0}) + 0x247 bytes
System.Windows.Forms.dll!System.Windows.Forms.Control.ControlNativeWindow.OnMessage(ref System.Windows.Forms.Message m) + 0x10 bytes
System.Windows.Forms.dll!System.Windows.Forms.Control.ControlNativeWindow.WndProc(ref System.Windows.Forms.Message m) + 0x31 bytes
System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.DebuggableCallback(System.IntPtr hWnd, int msg = 7, System.IntPtr wparam, System.IntPtr lparam) + 0x57 bytes

Nirmal Raja [Syncfusion]
Replied On May 23, 2010 02:10 PM UTC


Sorry for the delay.

The cells of the grid are as type that has text box as base, so all the control within the cell renders a text box. Please

let me know how you positioned an individual GridTextBoxControl as the control will not be defined apart from the

grid. If you want to scroll the grid to view a single cell then try to use the ScrollCellInView.

Please refer the code below:
int rowindex = 10;
int colindex = 5;
gdbg.ScrollCellInView(rowindex, colindex);

Let me know if you hav any queries.



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