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

GridViewComboBoxColumn with selection change and change selected row baclground property

3 Answers 77 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.
Pradnya
Top achievements
Rank 1
Pradnya asked on 12 Apr 2012, 09:49 AM
Hi All

I am using GridViewComboBoxColumn and we have "Test1" "Test2" and "Result" values inside combobox. 

On selection change event of combobox I want change the color of selected row if Selected value is "Result"

How can I Implement this scenario.

Thanks-

3 Answers, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 12 Apr 2012, 09:59 AM
Hello Pradnya,
Here is the recommended approach :

1. Bind the value of the combo column correctly , so that when the user changes selection , a value in the data item is changed
2. Ensure the item implements INotifyPropertyChanged correctly
3. Use RowStyleSelector in order to manipulate the color.

* Please note this approach does not involve handling the selection changed event of the combo itself.

All the best,
Pavel Pavlov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Pradnya
Top achievements
Rank 1
answered on 12 Apr 2012, 10:22 AM
Thank you for your valuable reply

Can you provide RowStyleSelector in order to manipulate the color.?

Thanks
0
Vlad
Telerik team
answered on 12 Apr 2012, 11:30 AM
Hello,

 You can check this demo for more info about RowStyleSelector:
http://demos.telerik.com/silverlight/#GridView/Selectors/StyleSelectors/RowStyleSelector 

All the best,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
GridView
Asked by
Pradnya
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Pradnya
Top achievements
Rank 1
Vlad
Telerik team
Share this question
or