IN ITEMDATABOUND: IF (E.Item.itemindex> = 0) {E.Item.attributes ["onclick"] = "this.bgcolor = '# 000000';";} ---------- -------------------------------------------------- --- Private Sub DataGrid3_ItemDataBound (ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataGridItemEventArgs) Handles DataGrid3.ItemDataBound If e.Item.ItemIndex> = 0 Then e.Item.Attributes ( "onMouseOver") = "JavaScript: this.bgcolor = 'blue';" E.Item.attributes ("onmouseout") = "javascript: this.bgcolor = 'white';" end if ------------- -------------------------------------------------- try it Private Sub DataGrid2_ItemDataBound (ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataGridItemEventArgs) Handles DataGrid2.ItemDataBound If e.Item.ItemIndex> = 0 Then If CInt (e.Item.Cells (0). Text)> 300 THEN E.Item.backcolor = system.drawing.color.brown else E.Item.backcolor = system.drawing.color.gray end if end if end sub