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

CreateNewControl

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

1 Reply

AD Administrator Syncfusion Team 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. http://64.78.18.34/Support/Forums/message.aspx?MessageID=21753

Loader.
Live Chat Icon For mobile
Up arrow icon