Datagridview selected row to Radgridview

2 posts, 0 answers
  1. George C.
    George C. avatar
    25 posts
    Member since:
    Sep 2018

    Posted 31 Jan 2019 Link to this post

    How can I only transfer Datagridview selected row to a Radgridview with the same columns ?

     

  2. Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    3759 posts

    Posted 04 Feb 2019 Link to this post

    Hello, George,        

    If I understand your requirement correctly, you need to set the same selected row in RadGridView as the selection in DataGridView. For this purpose I can suggest you to extract a unique cell's value from the selected row in the DataGridView, e.g. ID column. Then, iterate the Rows collection in RadGridView and compare the respective cell's value with the extracted one. If you find the relevant row in RadGridView, you can mark it as selected. The following help article is quite useful about selecting rows in RadGridView: https://docs.telerik.com/devtools/winforms/controls/gridview/rows/selected-rows-and-current-row 

    I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

    Regards,
    Dess | Tech Support Engineer, Sr.
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top