I am uing a gridview to display a list of orders, and when the user clicks on the selected order header the detail comes up. I am using the Id from the order header to get the order detail.
This works fine and the code behind is:-
Private Sub GridView1_SelectedIndexChanged
StockPotrnId = GridView1.SelectedRow.Cells(2).Text
Catch ex As Exception
Session("CurrentDate") = Calendar1.SelectedDate
Session("StockPotrnId") = StockPotrnId
Response.Redirect("frmstockorderdetail.aspx?StockPotrnId=" + StockPotrnId.ToString())
Now the grid is getting full and I would like to hide the cell containing the Id to give me more room, but if I hide the cell this doesn't work. Is there any way round this?