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

Change Grid row colour based on one coloum value

1 Answer 20 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Meenu
Top achievements
Rank 1
Meenu asked on 06 Mar 2014, 01:43 PM
How to change The grid row colour based on some condition in silverlight applctaion

In the grid, any value status="IOP" then the colour need to change to red...How can do that?


   Source.Add(New Data() With _

                { _

                    .DateOf = e.Result(Loopcnt).ETdatedisplay,

                    .Locate = location,

                    .StatusOf = Status,

                    .SpeedOf = e.Result(Loopcnt).ETspeed

                })





  TrackGrid.ItemsSource = Source

 TrackGrid.IsEnabled = True





I tried the way I mentioned here below ...Nt Success..>requesting the help

            For i = 0 To 9

                If TrackGrid.RowStyle.GetValue(i) = "IOP" Then

                    TrackGrid.Foreground = New SolidColorBrush(Colors.Red)

                End If

            Next

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 07 Mar 2014, 04:43 PM
Hello,

You can achieve your goal applying RowStyleSelector for RadGridView.

Regards,
Didie
Telerik

DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

Tags
General Discussions
Asked by
Meenu
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or