This is a migrated thread and some comments may be shown as answers.

Datagridview selected row to Radgridview

1 Answer 307 Views
GridView
This is a migrated thread and some comments may be shown as answers.
George C.
Top achievements
Rank 2
Iron
Veteran
George C. asked on 31 Jan 2019, 12:34 PM

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

 

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 04 Feb 2019, 02:56 PM
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.
Tags
GridView
Asked by
George C.
Top achievements
Rank 2
Iron
Veteran
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or