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.

Coy and Paste the Whole Grid

Thread ID:

Created:

Updated:

Platform:

Replies:

108315 Apr 12,2013 03:28 PM Apr 17,2013 08:43 AM WPF 2
loading
Tags: GridControl
padma
Asked On April 12, 2013 03:28 PM

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

 

 


padma
Replied On April 15, 2013 12:21 PM

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


Pannir Selvam S [Syncfusion]
Replied On April 17, 2013 08:43 AM

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

CONFIRMATION

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.

;