A
adiel
Hello, I am trying to retrieve the values of the previous row. I want
to change the color of a cell for the current row if the previous
row's cell had a different value:
Private Sub Datagrid1_ItemDataBound(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.DataGridItemEventArgs) Handles
Datagrid1.ItemDataBound
Dim x As String
Dim y As String
Dim z As String
x = e.Item.Cells(0).Text
y = e.Item.Cells(1).Text
z = e.Item.Cells(2).Text
End Sub
I know how to retrieve the values of the current row as shown above.
I also know that you can temporarily store the values of the previous
row in an object such as a global string but, I would rather not do
that. How do I retrieve the values of the previous row through the
microsoft classes?
Thanks before hand,
Adiel
to change the color of a cell for the current row if the previous
row's cell had a different value:
Private Sub Datagrid1_ItemDataBound(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.DataGridItemEventArgs) Handles
Datagrid1.ItemDataBound
Dim x As String
Dim y As String
Dim z As String
x = e.Item.Cells(0).Text
y = e.Item.Cells(1).Text
z = e.Item.Cells(2).Text
End Sub
I know how to retrieve the values of the current row as shown above.
I also know that you can temporarily store the values of the previous
row in an object such as a global string but, I would rather not do
that. How do I retrieve the values of the previous row through the
microsoft classes?
Thanks before hand,
Adiel