Thread: need help
View Single Post
  #7 (permalink)  
Old April 4th, 2006, 09:45 AM
madhusrp madhusrp is offline
Authorized User
 
Join Date: Jan 2006
Location: Pittsburgh, PA 15203
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.