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

How to select row in RadGirdView by Id

1 Answer 58 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Mariusz
Top achievements
Rank 1
Mariusz asked on 18 Jul 2011, 06:19 AM
Hello,
I want to select record in grid using my object ID.
Eg. I have collection of Customers. Each customer has ID, and I have one Customer with I want to select in gird. The problem is that my customer has different reference than customer in RadGrid but the same ID (so SelectedItem  doesn't work).
I know that I can first get the customer reference searching my collection (eg. using linq), but there isn't any comparer mechanism to set in RadGridView?
In most cases we override Equals() method on our objects, but sometims data comes from Web Service and we use Add Service Reference option, so we can't have influence on class definition.

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 20 Jul 2011, 08:36 AM
Hello Mariusz,

On trying to reproduce your scenario, I have created a small sample project. Please take a look at it and let me know whether it corresponds to your scenario. 

Best wishes,
Maya
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
GridView
Asked by
Mariusz
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or