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.
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.