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. Image for the cookie policy date

AppGrid, ScrollToControl

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

1 Reply

NR Nirmal Raja Syncfusion Team May 23, 2010 02:10 PM UTC

Hi,

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.

Regards,
Nirmal

Loader.
Live Chat Icon For mobile
Up arrow icon