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.

AppGrid, ScrollToControl

Thread ID:

Created:

Updated:

Platform:

Replies:

94377 May 10,2010 02:17 PM May 23,2010 10:10 AM Windows Forms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On May 10, 2010 02:17 PM

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 10:10 AM

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

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.

;