hi
i have a gridview with some hidden fields wih this code
GridView2.HeaderRow.Cells[3].Visible = false;
GridView2.HeaderRow.Cells[4].Visible = false;
foreach (GridViewRow gvr in GridView2.Rows)
{
gvr.Cells[3].Visible = false;
gvr.Cells[4].Visible = false;
}
GridView2.HeaderRow.Cells[3].Visible = false;
GridView2.HeaderRow.Cells[4].Visible = false;
foreach (GridViewRow gvr in GridView2.Rows)
{
gvr.Cells[3].Visible = false;
gvr.Cells[4].Visible = false;
}
i use this code to get the hiddens fields data for processing
(the user don't need to view thses fields)
it works but if i click on another page in the pager the hidden fields become visible
thanks for any assistance