protected void GridView_PageIndexChanging(object sender, GridViewPageEventArgs e) { //In-built paging implementation TestAndAuditGrid.DataSource = GetData(); TestAndAuditGrid.PageIndex = e.NewPageIndex; TestAndAuditGrid.DataBind(); }
protected void ddlApplication_SelectedIndexChanged(object sender, EventArgs e) { drpSystemEntity.Items.Clear(); TestAndAuditGrid.DataSource = null; TestAndAuditGrid.DataBind(); string strApplication = string.Empty; strApplication = ddlApplication.SelectedValue; //if (ddlApplication.SelectedIndex != 0) //{ var data = new SystemEntityTypeDataModel(); if (Convert.ToInt32(ddlApplication.SelectedValue.ToString()) != -1) { data.ApplicationId = Convert.ToInt32(ddlApplication.SelectedValue.ToString()); } else { data.ApplicationId = SessionVariables.RequestProfile.ApplicationId; } var dt = Framework.Components.Core.SystemEntityTypeDataManager.Search(data, SessionVariables.RequestProfile); UIHelper.LoadDropDown(dt, drpSystemEntity, SystemEntityTypeDataModel.DataColumns.EntityName, SystemEntityTypeDataModel.DataColumns.SystemEntityTypeId); drpSystemEntity.Items.Insert(0, new ListItem("All", "-1")); //} }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { TestAndAuditGrid.DataSource = GetData().DefaultView; TestAndAuditGrid.DataBind(); } oSearchFilter.OnSearch += oSearchFilter_OnSearch; }
private void GetData(int systemEntityTypeId) { var dt = Framework.Components.Audit.AuditHistoryDataManager.SearchRecordsWithMissingHistory(systemEntityTypeId, SessionVariables.RequestProfile); TestAndAuditGrid.DataSource = dt; TestAndAuditGrid.DataBind(); //return dt; //return null; }
private void DataBind(int appId, string appName, string entityName) { var dt = new DataTable(); dt = Framework.Components.Core.SystemEntityTypeDataManager.EntityTestData(SessionVariables.RequestProfile, appId, appName.Replace(" ", string.Empty), entityName); TestAndAuditGrid.DataSource = dt; TestAndAuditGrid.DataBind(); }
void oSearchFilter_OnSearch(object sender, EventArgs e) { TestAndAuditGrid.DataSource = GetData().DefaultView; TestAndAuditGrid.DataBind(); }