O
ohyeahgo
this might be an easy one.
So "everything" is working and this GridView and it is NOT used to
update data.
I'm attempting to get to the "invisible" data columns in a gridview. I
can easily access the shown data by
doing something like this, it works for "visible" data but no hidden
columns in my gridview.
For Each Row In GridView1.Rows
For J = 0 To 57
testhold = Row.Cells.Item(J).Text.ToString
Next
Next
Watch shows.
J = 0, Testhold = '' <- this is whats wrong, there
should be data here.
J = 1, Testhold = '3.0'
etc
Basically any "visible" items data will show in the above loop. No
"Visible = False" columns retain underneath data. (im trying to use
keys without showing them to the user).
Asp code ex... Supname always shows up empty (''). MonOtHrs shows
the correct data.
<asp:BoundField DataField="SupName" HeaderText="SupName"
SortExpression="SupName" Visible="False" />
<asp:BoundField DataField="MonOtHrs" HeaderText="OT"
SortExpression="MonOtHrs"
</asp:BoundField>
So "everything" is working and this GridView and it is NOT used to
update data.
I'm attempting to get to the "invisible" data columns in a gridview. I
can easily access the shown data by
doing something like this, it works for "visible" data but no hidden
columns in my gridview.
For Each Row In GridView1.Rows
For J = 0 To 57
testhold = Row.Cells.Item(J).Text.ToString
Next
Next
Watch shows.
J = 0, Testhold = '' <- this is whats wrong, there
should be data here.
J = 1, Testhold = '3.0'
etc
Basically any "visible" items data will show in the above loop. No
"Visible = False" columns retain underneath data. (im trying to use
keys without showing them to the user).
Asp code ex... Supname always shows up empty (''). MonOtHrs shows
the correct data.
<asp:BoundField DataField="SupName" HeaderText="SupName"
SortExpression="SupName" Visible="False" />
<asp:BoundField DataField="MonOtHrs" HeaderText="OT"
SortExpression="MonOtHrs"
</asp:BoundField>