title: How to add dropdownlist into Gridview in asp.net
body: <p>I've a grid control, in that I want to add dropdownlist box. The pupose of the dropdown is to show the page in in the grid, If I select 1 the gridview page1 or 2 means 2nd page in the grid etc, that drop down should not view while I'm going to take print out</p>
  
  <p>My current code:</p>
  
  <pre><code>protected void PageDropDownList_SelectedIndexChanged(Object sender, EventArgs e) 
  { 
      GridViewRow pagerRow = gvDetails.BottomPagerRow; 
      DropDownList pageList = (DropDownList)pagerRow.Cells[0].FindControl("PageDropDownList"); 
      gvDetails.PageIndex = pageList.SelectedIndex; 
  }
  </code></pre>