جرب هذا التحويل
PHP كود :
Dim gView As GridView = sender
If Not gView.IsValidRowHandle(e.RowHandle) Then Return
Dim parent As Integer = gView.GetParentRowHandle(e.RowHandle)
If gView.IsGroupRow(parent) Then
For i = 0 To gView.GetChildRowCount(parent) - 1
If gView.GetChildRowHandle(parent, i) = e.RowHandle Then
e.Appearance.BackColor = If((i Mod 2) = 0, Color.White, Color.DeepSkyBlue)
End If
Next
Else
e.Appearance.BackColor =If(( e.RowHandle mod 2 = 0 ), Color.White , Color.DeepSkyBlue )
End If
