SqlConnection sqlConn = new SqlConnection(StringKoneksioni.Stringu); using (sqlConn) { SqlCommand sqlCmd = new SqlCommand("procProcedureName", sqlConn); sqlCmd.CommandType = CommandType.StoredProcedure; sqlCmd.Parameters.Add(new SqlParameter("@Parameter", SqlDbType.VarChar)); sqlCmd.Parameters["@Parameter"].Value = Session["Parameter"]; sqlConn.Open(); SqlDataReader reader = sqlCmd.ExecuteReader(); gvName.DataSource = reader; gvName.DataBind(); ///All I want is to hide the following column from grid view but use its value. How to solve this? gvName.Columns[10].Visible = false; sqlConn.Close(); }
gvName.DataBind(); ///All I want is to hide the following column from grid view but use its value. How to solve this? gvName.Columns[10].Visible = false;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)