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.

How do I get a button on my row to copy the data to a new row?

Thread ID:

Created:

Updated:

Platform:

Replies:

124066 May 12,2016 02:16 PM May 17,2016 01:16 AM Silverlight 3
loading
Tags: SfDataGrid
George Bamber
Asked On May 12, 2016 02:16 PM

Hi

I have a button on each row of my SfDataGrid to allow the user to copy a record to a new row (using a GridTemplateColumn).

How do I get the entity for that row as it might not always be the selected item? I'm trying pass the data row as a CommandParameter binding to my view model.

Kind regards
George



Sivakumar R [Syncfusion]
Replied On May 12, 2016 10:24 PM

Hi George, 

Refer the below KB which explains “How to pass row data as parameter to the command in ViewModel when clicking the Button in TemplateColumn?” 

Thanks, 
Sivakumar 


George
Replied On May 13, 2016 02:33 AM

Hi

Thank you very much. Not sure how I missed that KB article. I searched everywhere before asking.

Kr
George

Srinivasan Vasu [Syncfusion]
Replied On May 17, 2016 01:16 AM

Hi George, 
  
Thanks for your update  
  
Regards, 
Srinivasan 


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.

;