Click here to Skip to main content
15,742,477 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
When i tried to change the page,gridview got invisible(In my webpage gridview is in the popup extender) and i again want to press the 'show' button for viewing the particular page
And again if i press the next index,the gridview again get invisible

The code follows

ViewState["function"] = "showall";

        grdvHostelRoomDetails.Visible = false;
        lblMessage.Visible = false;
        commonObject.command1 = new SqlCommand();
        commonObject.dTable = new DataTable();
        commonObject.command1.Parameters.AddWithValue("@CampusID", Convert.ToInt32(Session["CampusID"].ToString()));
        commonObject.dTable = commonObject.ExecuteProcedureSelect("SP_HostelRoomSetting_Select");
        grdvHostelRoomDetails.DataSource = commonObject.dTable;
        grdvHostelRoomDetails.Visible = true;
Updated 6-Jun-12 22:54pm
Sandeep Mewara 7-Jun-12 2:36am    
Surely something related in your code. Until you don't share, it would be difficult for anyone to point out.

Use 'Improve Question' link to update the question with your related code snippet.

Please post your code where your gridview is placed. Meanwhile check if you have set the visibility of gridview to "False".
Share this answer
on page index event add
grdvHostelRoomDetails.Visible = true;
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900