// Fill Grid New Version
 public static void FillDirectGrid(int OpCode, string _spName, ref HtmlGenericControl DivError, ref Label _LblError, ref GridView dg, ref int k_intTotalRowsNumbers, int EditCol, int delcol)
 {
     try
     {
         string g_strErrorMessage = "";
         DivError.Visible = false;
         _LblError.Text   = "";
         dg.DataSource    = null;
         dg.DataBind();
         DataTable dt = GeneralBL.FillDataGrid(OpCode, _spName, ref g_strErrorMessage, "2");
         if (g_strErrorMessage.Length < 1)
         {
             if (GeneralBL.isdtEmptyNull(dt) == true)
             {
                 if (EditCol != -1)
                 {
                     dg.Columns[EditCol].Visible = true;
                 }
                 if (delcol != -1)
                 {
                     dg.Columns[delcol].Visible = true;
                 }
                 k_intTotalRowsNumbers = dt.Rows.Count;
             }
             dg.DataSource = dt;
             dg.DataBind();
         }
         else
         {
             DivError.Visible = true;
             _LblError.Text   = g_strErrorMessage.Replace("Error : ", "");
         }
     }
     catch (Exception exp)
     {
         DivError.Visible = true;
         _LblError.Text   = exp.Message;
     }
 }