call databind function in the pageindexedchange event handler with the conditions of the dropdown values. for example
designergenerated code add this
this.datagrid.PageIndexChanged += new System.Web.UI.WebControls.DataGridPageChangedEvent Handler(this.Page_Change);
private void Page_Change(object source, System.Web.UI.WebControls.DataGridPageChangedEvent Args e)
{
Datagrid.CurrentPageIndex = e.NewPageIndex;
if (ViewState["searchConditions"]!=null)
{
BindData((SearchConditions)ViewState["searchConditions"], true);
}
else
{
BindData(searchConditions, true);
}
}
probaably u might get changes the values to your datagridand bind conditions here viewstate is the dropdown conditions.
|