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

Coy and Paste the Whole Grid

I am using Syncfusion silverlight Grid control. I have created 2(A and B) grids in a Stack panel. On a click of a button I want to copy Grid B as a new grid i.e; now I will have 3 grids. How to do this?

Does syncfusion supports this?

thanks

Padma

 

 


2 Replies

PA padma April 15, 2013 04:21 PM UTC

It is very Urgent. Can somebody post the solution for this 



PS Pannir Selvam S Syncfusion Team April 17, 2013 12:43 PM UTC

Hi Padma,

 

Sorry for the delay caused.

 

You can achieve your requirement by assigning the old GridModel to the newly created Grid as shown in the below code snippet.

 

Code Snippet[C#]:

private void Button_Click(object sender, RoutedEventArgs e)

{

    GridControl newGrid = new GridControl();

    newGrid.Model = this.grid.Model;

}

 

 

 

Herewith we have attached a sample based on this for your reference.

 

Please let us know if you have any other queries.

 

Thanks,

Pannir



GC_SL sample_a55990ec.zip

Loader.
Live Chat Icon For mobile
Up arrow icon