I have a GridView with a DataSource (SQL Database). I want to hide a column, but still be able to access the value when I select the record. Can someone show me
When I want access some value from GridView before GridView was appears.
BoundField and bind DataField nomally.RowDataBound event, I do some process in that event.Before GridView was appears I write this:
protected void GridviewLecturer_PreRender(object sender, EventArgs e)
{
GridviewLecturer.Columns[0].Visible = false;
}