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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback


Thread ID:





23084 Jan 4,2005 04:23 PM UTC Jan 4,2005 05:08 PM UTC WinForms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On January 4, 2005 04:23 PM UTC

According to my understanding CreateNewControl method available in GridDataBound class creates a new independent instance inheriting all aesthetic characteristics from the parent control, but it seems to be not working. GridDataBoundGrid g1 = gridDataBoundGrid1.CreateNewControl(panel1,0,0) as GridDataBoundGrid; g1.DataSource = null; g1.DataMember = null; g1.Refresh(); panel1.Controls.Add(g1); g1.Show(); In above code even though i am assigning null value to datasource property but rows are still visible in both the grid, and modification done to underlying dataset reflects on both the grid. Regards Yogesh S

Administrator [Syncfusion]
Replied On January 4, 2005 05:08 PM UTC

In a splitter control which is what our code uses the CreateNewControl for, there is only one datasource. For example, you cannot have two grids in our GridRecordNavigationControl that have different datasources. If you want a cloned grid that you can then assign a different datasource to, then you will have to do more work. Here is a forum thread with a sample.


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

This page will automatically be redirected to the 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

Live Chat Icon For mobile
Live Chat Icon