Hi,
I'm trying to implement some custom formatting on RadGrid I used code like be below :
I'm trying to implement some custom formatting on RadGrid I used code like be below :
Protected Sub RadGrid1_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.WebControls.GridItemEventArgs) Handles RadGrid1.ItemDataBound
If (TypeOf e.Item Is GridDataItem) Then
Dim dataItem As GridDataItem = CType(e.Item, GridDataItem)
If (dataItem("Country").Text = "Mexico") Then
dataItem.CssClass = "MyMexicoRowClass"
End If
End If
End Sub
But e.item is GridPagerItem there for rest of code is not accessible. Anythough?
basically I want to check value of column and depend on it I want to change background to different color for the rows
i'm using radgrid paging allowed and CSS
RadGrid populated programmatically .
Newbie,
MM
If (TypeOf e.Item Is GridDataItem) Then
Dim dataItem As GridDataItem = CType(e.Item, GridDataItem)
If (dataItem("Country").Text = "Mexico") Then
dataItem.CssClass = "MyMexicoRowClass"
End If
End If
End Sub
But e.item is GridPagerItem there for rest of code is not accessible. Anythough?
basically I want to check value of column and depend on it I want to change background to different color for the rows
i'm using radgrid paging allowed and CSS
RadGrid populated programmatically .
Newbie,
MM