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

Change Row Style

3 Answers 110 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Reeta
Top achievements
Rank 1
Reeta asked on 28 May 2009, 12:25 PM
I had a gridView which is bind to a DataTable's DefaultView. Now, i want to set Row Style according to row state, i.e., if rowstate is Modified i want that row in Red color, if it is added then in green color. How do i achieve this?

Thanks
Reeta

3 Answers, 1 is accepted

Sort by
0
Kalin Milanov
Telerik team
answered on 30 May 2009, 11:25 AM
Hello Reeta,

I've attached small example to illustrate you how to achieve your goal.

Regards,
Kalin Milanov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Jonathan
Top achievements
Rank 1
answered on 03 Jun 2009, 10:50 AM
Any way to do this in XAML using styles or templates?

Thanks
0
Vlad
Telerik team
answered on 04 Jun 2009, 08:39 AM
Hi Jonathan,

Pure XAML solution is possible only with INotifyPropertyChanged which is not the case for DataRow.

Sincerely yours,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
GridView
Asked by
Reeta
Top achievements
Rank 1
Answers by
Kalin Milanov
Telerik team
Jonathan
Top achievements
Rank 1
Vlad
Telerik team
Share this question
or