/// <summary> /// bind & display the resultant grid based on the filter critria. /// </summary> public void BindData() { string queryText = getQuery(); DataSet dsSyncData = objQMS.getSyncdataFromDB(queryText); Session["QMSData"] = dsSyncData; GrdSyncQMSlog.DataSource = dsSyncData.Tables[0]; GrdSyncQMSlog.DataBind(); lblDocumentCount.Text = dsSyncData.Tables[0].Rows.Count + " Records Found"; }
private void SortGridView(string sortExpression, string direction) { DataSet DS = (DataSet)Session["QMSData"]; DataView dv = new DataView(DS.Tables[0]); dv.Sort = sortExpression + " " + direction; this.GrdSyncQMSlog.DataSource = dv; GrdSyncQMSlog.DataBind(); }