public void InitGrid(string tKeyName, List <string> ColExList, DataSet ds, string tModifyURL, bool AllowSorting, bool showEdit, string EditName)
        {
            List <GridExPara> NewColExList = new List <GridExPara>();

            foreach (string obj in ColExList)
            {
                GridExPara p1 = new GridExPara();
                p1.FieldName = obj;
                p1.bShow     = true;
                p1.iType     = 0;
                NewColExList.Add(p1);
            }
            InitGrid(tKeyName, NewColExList, ds, tModifyURL, AllowSorting, showEdit, EditName);
        }
        void BindGrid()
        {
            _CompanyID = Common.ConvertEx.ToInt(Common.DNTRequest.GetString("CompanyID"));
            T_Company_MDL    objCompany    = (new T_Company_BLL()).GetModel(_CompanyID);
            T_SystemInfo_MDL objSystemInfo = (new T_SystemInfo_BLL()).GetModel(objCompany.CompanyType);

            T_Other_BLL otherBLL = new T_Other_BLL();
            DataSet     ds       = otherBLL.GetCompanySignet(_CompanyID, objSystemInfo.SystemInfoCode);

            List <GridExPara> collist = new List <GridExPara>();

            GridExPara p11 = new GridExPara();

            p11.FieldName = "AttachID";
            p11.bShow     = false;
            collist.Add(p11);

            GridExPara p1 = new GridExPara();

            p1.FieldName = "SystemInfoName";
            collist.Add(p1);

            GridExPara p2 = new GridExPara();

            p2.FieldName = "SubType";
            collist.Add(p2);

            GridExPara p3 = new GridExPara();

            p3.FieldName = "AttachPath";
            p3.iType     = GridExPara.CtrlType.Image;
            p3.iLength   = 120;
            collist.Add(p3);

            GridExPara p99 = new GridExPara();

            p99.FieldName = "";
            p99.iType     = GridExPara.CtrlType.FileUpload;
            collist.Add(p99);
            //ctrlGridEx1.PageCount = Common.ConvertEx.ToInt(Common.Session.GetSession("PageCount"));
            ctrlGridEx1.InitGrid("SystemInfoID", collist, ds, "", false, false, "");
        }