Can't see data from boundcolumn visible=false
I can't get the data, with my code, from a BoundColumn that is visible=False.
<asp:BoundColumn visible="False" datafield="JobSiteID"></asp:BoundColumn>
DataGRid1_UpdateCommand(source: System.Object; e: System.Web.UI.WebControls.DataGridCommandEventArgs );
for intgrCellsCounter := 0 to e.Item.Cells.Count do
begin
for intgrControlsCounter := 0 to e.Item.Controls.Count do
begin
if e.Item.Cells[intgrCellsCounter].Controls[intgrControlsCounter].GetType().ToString = 'System.Web.UI.WebControls.TextBox' then
begin
txtbxTextBox := TextBox(e.Item.Cells[intgrCellsCounter].Controls[intgrControlsCounter]);
txtValue := txtbxTextBox.Text;
end
end;
end;
If I make the BoundColumn visible=True, then txtValue receives the data. If the BoundColumn is visible=false, then txtValue does not reveice the data.
Help and Thank you in advance.
Isa Paine
Software Developer
Isa Paine
Software Developer
|