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

[Solved] RadGrid - Rows - Color

1 Answer 143 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jean-Yves
Top achievements
Rank 1
Jean-Yves asked on 10 Apr 2009, 10:12 PM
Hi,

In RadGrid I can't find the RowDataBound function.
In fact, in each binding of data, I would like to color in different way the row.

My code was (with a grid) :
 

Protected

Sub GridViewDevis_RowDataBound(ByVal sender As Object, ByVal e As GridViewRowEventArgs) _

 

 

Handles GridViewDevis.RowDataBound

 

 

If (e.Row.RowType = DataControlRowType.DataRow) Then

 

 

Dim item As DataRowView

 

item = e.Row.DataItem

 

If item.Row.Item(10) = False Then

 

e.Row.CssClass =

"ligneRouge"

 

 

End If

 

 

End If

 

 

End Sub

Can you help me ?
Thanks

Jean-Yves

 

1 Answer, 1 is accepted

Sort by
0
Bruno
Top achievements
Rank 2
answered on 12 Apr 2009, 01:53 PM
these links helped me a lot in the beginning... thanks to telerik staff

Accessing cells and rows
Conditional Formatting for rows/cells on ItemDataBound

<< Bruno >>
Tags
Grid
Asked by
Jean-Yves
Top achievements
Rank 1
Answers by
Bruno
Top achievements
Rank 2
Share this question
or