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

[Solved] Selecting the Row in RADGRIDVIEW for Silverlight

1 Answer 81 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Suman Rao
Top achievements
Rank 1
Suman Rao asked on 19 Nov 2009, 08:18 AM
Hi Forum,

We are using RADGRIDVIEW control in SilverLight 3.0 project and RadGridView is binded to DTO object collection (DTO object contains: Invoice_Key, Name,Address). 

Also the same DTO object is binded to Data Form control in the XAML of silverlight.

We are using Data Form to do CRUD operations, so once the CRUD operation is competed, we get the Invoice_Key back from DB.

Based on the Invoice_key, We need to selected the row (record) in RadGridView and highlight it

Can some one put in the code for selecting the row (highligting the record) in Grid

Thanks in Advance

Suman

1 Answer, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 19 Nov 2009, 09:29 AM
Hi Suman Rao,

You can easily select an item by setting the SelectedItem property of RadGridView. Once you get the invoice key you can search through RadGridView.Items collection for an item with that specific key - if the item is found you should just assign it to SelectedItem and it will be selected.


Sincerely yours,
Milan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Suman Rao
Top achievements
Rank 1
Answers by
Milan
Telerik team
Share this question
or