private void Page_load(..... { this.oAssist = (Assist)this.RegisterBizObj(new Assist()); this.oDictations = (Dictations)this.RegisterBizObj(new Dictations()); if (!IsPostBack) { this.BindData("Dictations"); } }
private void BindData(string tBindingSource) { DataSet dsDictations = this.oDictations.GetAllDictations(); DataSet dsAssist = this.oAssist.GetAllAssistants(); this.MmDataGrid.BindingSource=tBindingSource }When the Page loads the grid is filled with "Dictations" data. I would like the grid to fill with "Assist" data after the press of btnAssistData. I placed the following code in the button's event handler.
private void btnAssistData_Click(... { this.BindData("Assist") }When I press btnAssistData the grid remains filled with "Dictations" data. What am I doing worng.