title: Grid View - Binding Data with Data Source at Button Click But Grid is not appearing
body: <p>I have a <code>GridView</code> in <code>UpdatePanel</code> . On button click event I am binding data with Grid view. Data is being binded properly but Grid is not showing. </p>
  
  <pre><code> protected void Page_Load(object sender, EventArgs e)
      {
          if (!IsPostBack)
          {
             bindData();
          }
      }
  
  protected void bindData() 
          {
                      // dv is my data view have rows and columns
                      GridView1.DataSource = dv;
                      GridView1.DataBind();
                      UpdatePanel.Update();
                  }
          }
  </code></pre>
  
  <p>On Button Click Event :-</p>
  
  <pre><code>protected void btnUpdateExtensions_Click(object sender, EventArgs e)
          {   
          // dv is data view have data with columns and rows
          GridView1.DataSource = dv;
          GridView1.DataBind();
                  UpdatePanel.Update();      
          }
  </code></pre>
  
  <p>At page load its binding data properly ad showing <code>GridView</code> but at button Click Event its not showing GridView while data source is from same source.</p>