public void FillReplicationGrid() { DataTable replicationTab = VSWebBL.DashboardBL.mailFileBL.Ins.FillReplicationGrid(); replicationTab.PrimaryKey = new DataColumn[] { replicationTab.Columns["ID"] }; ReplicationGridView.DataSource = replicationTab; ReplicationGridView.DataBind(); Session["ReplicationFiles"] = replicationTab; }
public void FillMailFilesfromSession() { DataTable replicationTab = new DataTable(); if (Session["ReplicationFiles"] != "" && Session["ReplicationFiles"] != null) { replicationTab = (DataTable)Session["ReplicationFiles"]; } //probtab.PrimaryKey = new DataColumn[] { probtab.Columns["ID"] }; ReplicationGridView.DataSource = replicationTab; ReplicationGridView.DataBind(); }