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

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

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



3 Replies

SR Sivakumar R Syncfusion Team May 13, 2016 02:24 AM UTC

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 



GE George May 13, 2016 06:33 AM UTC

Hi

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

Kr
George


SV Srinivasan Vasu Syncfusion Team May 17, 2016 05:16 AM UTC

Hi George, 
  
Thanks for your update  
  
Regards, 
Srinivasan 


Loader.
Live Chat Icon For mobile
Up arrow icon