Click here to Skip to main content
15,881,809 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
hi Friends
I have one grid view and i have create paging using PagerSettings like next,previous,Last,First
and i want to droup down center in privious and last so how to possible thanks to advance
Posted
Comments
Not clear. Please explain more.
Aydin Homay 28-Dec-13 0:47am    
Please explain what you want exactly ?
Sampath Lokuge 28-Dec-13 1:32am    
what's going to do by using that drop down ?

1 solution

protected void GridView1_DataBound(object sender, EventArgs e)
   {

       for (int i = 1; i <= GridView1.PageCount; i++)
       {
           DropDownList1.Items.Insert( DropDownList1.Items.Count-1 ,i);

       }
   }



C#
protected void ddlPaging_SelectedIndexChanged(object sender, EventArgs e)
   {
      
       GridView1.PageIndex = DropDownList1.SelectedIndex;
         loadgrid();  //function to load grid view
   }
 
Share this answer
 
v2

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