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.


Thread ID:





23084 Jan 4,2005 11:23 AM Jan 4,2005 12:08 PM Windows Forms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On January 4, 2005 11:23 AM

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 12:08 PM

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.

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.