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

[Solved] highlight row code behind - Help !

2 Answers 206 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.
Tomasz
Top achievements
Rank 1
Tomasz asked on 03 Jan 2011, 01:36 PM
Hi, 

 Im trying to do following thing. 

 I have a RadGrid in SelectionMode="Multiple", and in code behind I change the SelectedItems collection, by adding new items to it. But after that, the rows that are binded with this items are not highlighted. Is thery any way to simple highlight the row from code behind?

Regards
Tomek

2 Answers, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 03 Jan 2011, 05:18 PM
Hi Tomasz,

 
As far as I can understand do you need to programatically select multiple rows in your RadGridView or maybe I am missing something? Please share a little bit more info about this case, I would recommend you to use this online help article "Programmatic Selection".
If you need any further assistance let me know.

Regards,
Vanya Pavlova
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Tomasz
Top achievements
Rank 1
answered on 04 Jan 2011, 08:58 AM
Hi Vanya ,

Thanks for your answer. I will describe my problem better now. So I have RadGrid in RadWindow contener. The thing is, when I click and select the rows with mouse the selected rows are highlighted. Then I need to add some items in code behind to SelectedItems Collection of my RadGrid and Im doing it correctly, but then  after all the items that I have needed are in SelctedItems of grid, the rows that are binded with those items are not highlighted. So my question is how to simple higlight these rows in this case ?

Regards,
Tomasz
Tags
GridView
Asked by
Tomasz
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Tomasz
Top achievements
Rank 1
Share this question
or