3
Contributors
3
Replies
4
Views
9 Years
Discussion Span
Last Post by preetham.saroja
0

if u want to change the datagrid color,,,,
Use datagrid_itemdatabound()
If (e.Item.ItemType = ListItemType.Item) Or (e.Item.ItemType = ListItemType.AlternatingItem) Then
Dim value As String = Trim(e.Item.DataItem("Sex"))
If value = "male" Then
e.Item.BackColor = System.Drawing.Color.Chocolate ' i is the index of the particular column
End If
End If
--------------
change according to ur requirement...!!
regards,,,
preetham....

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.