RowColor in Cycle

3 posts, 0 answers
  1. Vlad
    Vlad avatar
    14 posts
    Member since:
    Jun 2010

    Posted 02 Jun 2018 Link to this post

    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. Dimitar
    Admin
    Dimitar avatar
    2841 posts

    Posted 04 Jun 2018 Link to this post

    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.
  3. Vlad
    Vlad avatar
    14 posts
    Member since:
    Jun 2010

    Posted 07 Aug 2018 in reply to Dimitar Link to this post

    Thank you!
Back to Top