DotNetGnat
Programmer
This thread is the continuation of the thread thread855-1172263.
ca8msm, everything works fine. I have just added the ItemDataBound Sub and did my formatting there...
only one aspect of my formatting is not working...
when i had the datagrid by itself( i mean not as the child grid inside the repeater)...i had the following code...
the red part is what i tried to mimic...it was actually...ds.Tables(0).Rows
and based on this i do some more formatting in the ItemDataBound...but now this doesnt work...it just skips this formatting...
how and where can i put the above code in the example you provided...
thanks so much
-DNG
ca8msm, everything works fine. I have just added the ItemDataBound Sub and did my formatting there...
only one aspect of my formatting is not working...
when i had the datagrid by itself( i mean not as the child grid inside the repeater)...i had the following code...
Code:
Dim row As TableRow
Dim i As Integer = 0
Do While i <= [red]MyDataset.Tables("Child")[/red].Rows.Count - 2
If MyDataset.Tables("Child").Rows(i).Item("calcLength") Is DBNull.Value Then
Dim shRow As DataRow = MyDataset.Tables("Child").NewRow
shRow("Station") = "11111"
MyDataset.Tables("Child").Rows.InsertAt(shRow, i + 1)
i = i + 1
Else
Dim eRow As DataRow = MyDataset.Tables("Child").NewRow
eRow("calclength") = MyDataset.Tables("Child").Rows(i).Item("calcLength")
eRow("calcAve_Width") = MyDataset.Tables("Child").Rows(i).Item("calcAve_Width")
eRow("calcSF") = MyDataset.Tables("Child").Rows(i).Item("calcSF")
MyDataset.Tables("Child").Rows.InsertAt(eRow, i + 1)
i = i + 1
End If
i = i + 1
Loop
the red part is what i tried to mimic...it was actually...ds.Tables(0).Rows
and based on this i do some more formatting in the ItemDataBound...but now this doesnt work...it just skips this formatting...
how and where can i put the above code in the example you provided...
thanks so much
-DNG