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

RowColor in Cycle

2 Answers 11 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Vlad
Top achievements
Rank 1
Vlad asked on 02 Jun 2018, 06:13 AM
Hi!
 
Dim CellValue As String
Dim RowI As GridViewRowInfo
Dim RowII As GridViewRowInfo
For i = 0 To grd.Rows.Count - 1
    RowI = grd.Rows(i)
    CellValue = grd.Rows(i).Cells("colID1").Value
      For ii = i + 1 To grd.Rows.Count - 1
           RowII = grd.Rows(ii)
           If CellValue = RowII.Cells("colID1").Value Then
 
               'RowI Change BackColor
               'RowII Change BackColor
 
           End If
      Next
Next

 

How? Thank you!

2 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 04 Jun 2018, 06:35 AM
Hi Vlad,

You can use the Style property for such cases. Detailed information is available here: Style Property | RadGridView.

I hope this will be useful. 

Regards,
Dimitar
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Vlad
Top achievements
Rank 1
answered on 07 Aug 2018, 07:34 AM
Thank you!
Tags
GridView
Asked by
Vlad
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Vlad
Top achievements
Rank 1
Share this question
or