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

Splitter Problem (v 2.1.0.9)

Hi,

Horizontal and vertical splitter in case of GDBG is causing the application to crash.

I noticed the same problem with "Essential Grid Samples->DataBound->GridRecordNavigationControl" sample.

To reproduce the problem:
1. Bring the Horizontal splitter to somewhere in the middle by dragging.
2. Put it back to its original position by dragging.
3. Now drag the vertical splitter. Form hangs!!

what's the solution to this problem? Its crashing my application!! :(

Thanks,
Amiya

5 Replies

AD Administrator Syncfusion Team March 13, 2007 09:52 PM UTC

Hi Amiya,

Please override the Refresh method as follows:

public class MySplitterControl : Syncfusion.Windows.Forms.SplitterControl
{
///
public override void Refresh()
{
if (!Created)
return;
PerformLayout();
for (int row = 0; row < this.RowCount; row++)
{
for (int column = 0; column < ColumnCount; column++)
{
Control pane = GetPane(row, column);
if (pane != null)
{
pane.Visible = true;
if (!this.Controls.Contains(pane))
{
Controls.Add(pane);
}
Syncfusion.Windows.Forms.IScrollBarWrapperContainer sc = pane as Syncfusion.Windows.Forms.IScrollBarWrapperContainer;
if (sc != null)
sc.UpdateScrollBars();
}
}
}
}
}

And instantiate the derived SplitterControl class in InitializeComponent:

this.splitterControl1 = new MySplitterControl();

Here is a forum thread that discuss with similar issue.
http://www.syncfusion.com/support/Forums/message.aspx?&MessageID=8981

Let me know if this takes care of the issue.

Best regards,
Haneef


AD Administrator Syncfusion Team March 22, 2007 08:56 PM UTC

Haneef,

I'm using Syncfusion.Windows.Forms.RecordNavigationControl. How to resolve the issue in it?

Also for GridDataBoundGrid which record navigation control shall i use?

Thanks,
Amiya


AD Administrator Syncfusion Team March 22, 2007 09:31 PM UTC

Hi Amiya,

The RecordNavDataBoundGrid browser sample displays a GridDataBoundGrid within a GridRecordNavigationControl. This combination will give you a look that is very similar to what you would see in Microsoft Access. This sample was created mainly using the designer. First an SqlDataAdapter was created and connected to the Customers table of the NorthWind database. Then a DataSet was generated. Next, a GridRecordNavigationControl was dropped on the form and finally a GridDataBoundGrid was dropped on the GridRecordNavigationControl. Let me know if this helps.

Best regards,
Haneef


AD Administrator Syncfusion Team March 23, 2007 01:48 PM UTC

Hi Haneef,

Please find attached the sample in which problem exists.

To reproduce the issue

1. Bring the Horizontal splitter to somewhere in the middle by dragging.
2. Put it back to its original position by dragging.
3. Now drag the vertical splitter. Form hangs!!

How to resolve this issue?

Thanks,
Amiya

TestGridNavigationControl.zip


AM Amiya March 28, 2007 02:48 PM UTC

Any update on this issue??

Loader.
Live Chat Icon For mobile
Up arrow icon