public void fillgridbysession()
 {
     if (Session["BlackBerryDevicePrbegrid"] != null && Session["BlackBerryDevicePrbegrid"] != "")
     {
         DataTable d = new DataTable();
         try
         {
             d = (DataTable)Session["BlackBerryDevicePrbegrid"];
             BlackBerryDeviceProbegrid.DataSource = d;
             BlackBerryDeviceProbegrid.DataBind();
         }
         catch (Exception ex)
         {
             //6/27/2014 NS added for VSPLUS-634
             Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex);
             throw ex;
         }
     }
 }
        public void getdata()
        {
            DataTable dt = new DataTable();

            try
            {
                dt = VSWebBL.ConfiguratorBL.BlackBerryBL.Ins.gettabledetails();;
                if (dt.Rows.Count >= 0)
                {
                    Session["BlackBerryDevicePrbegrid"]  = dt;
                    BlackBerryDeviceProbegrid.DataSource = dt;

                    BlackBerryDeviceProbegrid.DataBind();
                }
            }
            catch (Exception ex)
            {
                //6/27/2014 NS added for VSPLUS-634
                Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex);
                throw ex;
            }
        }