hi
i am using telerik grid view in my wep application...using c#
in my application i have set one option for user can select page size
in tht grid view using compo box
protected void DDL_SelectedIndexChanged(object sender, EventArgs e)
{
string PerPage = DDL.SelectedItem.Text;
switch (PerPage)
{
case "3":
{
grdWantList.PageSize = 3;
BindWantedList();
break;
}
case "15":
{
grdWantList.PageSize = 15;
BindWantedList();
break;
}
case "20":
{
grdWantList.PageSize = 20;
BindWantedList();
break;
}
}
}
public void BindWantedList()
{
int CategoryId = Convert.ToInt32(Session["CategoryId"]);
BllWanted.GetWantList(CategoryId);
grdWantList.DataSource = BllWanted.WantList;
grdWantList.DataBind();
}
combo box having values like 3,15,20...i am using tht code code but grid view
does not change in page size how to i change page size dynamically
Plz help me
azees