void BindGrid_Details()
        {
            this.UcGrid_Details.Setup("User_Rights", this.mObj.pDt_Rights, "TmpKey", true);

            //[-]

            DataTable Dt_FilterFields = new DataTable();

            Dt_FilterFields.Columns.Add("Desc", typeof(string));
            Dt_FilterFields.Columns.Add("Field", typeof(string));
            Dt_FilterFields.Columns.Add("DataType", typeof(string));

            List <ClsBindGridColumn_EO> List_Gc = Layer01_Methods_Web_EO.GetBindGridColumn_EO("User_Rights");

            foreach (ClsBindGridColumn Gc in List_Gc)
            {
                if (Gc.mVisible && Gc.mFieldName != "")
                {
                    List <QueryParameter> Sp = new List <QueryParameter>();
                    Sp.Add(new QueryParameter("Field", Gc.mFieldName));
                    Sp.Add(new QueryParameter("Desc", Gc.mFieldDesc));
                    Sp.Add(new QueryParameter("DataType", this.mObj.pDt_Rights.Columns[Gc.mFieldName].DataType.Name));
                    Do_Methods.AddDataRow(ref Dt_FilterFields, Sp);
                }
            }

            Layer01_Methods_Web.BindCombo(ref this.Cbo_SearchFilter, Dt_FilterFields, "Field", "Desc");
            this.ViewState[CnsDt_FilterFields] = Dt_FilterFields;
        }
        void EOCb_Accept_Execute(object sender, EO.Web.CallbackEventArgs e)
        {
            if (this.mIsMultipleSelect)
            {
                this.PostGrid_Selected();
            }
            else
            {
                Int64 ID = 0;
                try
                { ID = Convert.ToInt64(e.Parameter); }
                catch { }

                DataTable Inner_Dt = new DataTable();
                Inner_Dt.Columns.Add("ID", typeof(Int64));

                List <QueryParameter> Sp = new List <QueryParameter>();
                Sp.Add(new QueryParameter("ID", ID));
                Do_Methods.AddDataRow(ref Inner_Dt, Sp);
                this.mDt_Selected = Inner_Dt;
            }

            DataTable Dt   = this.Selected();
            string    Data = (string)this.ViewState[CnsData];

            if (EvAccept != null)
            {
                EvAccept(Dt, e, Data);
            }
        }
        void BindGrid()
        {
            Int64 Top  = 50;
            Int32 Page = 1;

            this.Txt_Top.Text = Top.ToString();
            this.Details_SetPaginator(Top, this.List_Count());

            DataTable Dt_List = this.List(null, "", Top, Page);
            List <ClsBindGridColumn_EO> List_Gc = this.BindGrid(Dt_List);

            DataTable Dt_FilterFields = new DataTable();

            Dt_FilterFields.Columns.Add("Desc", typeof(string));
            Dt_FilterFields.Columns.Add("Field", typeof(string));
            Dt_FilterFields.Columns.Add("DataType", typeof(string));

            foreach (ClsBindGridColumn_EO Gc in List_Gc)
            {
                if (Gc.mVisible && (Gc.mFieldName != ""))
                {
                    if (Gc.mFieldName == "IsSelect")
                    {
                        continue;
                    }

                    List <QueryParameter> Sp = new List <QueryParameter>();
                    Sp.Add(new QueryParameter("Field", Gc.mFieldName));
                    Sp.Add(new QueryParameter("Desc", Gc.mFieldDesc));
                    Sp.Add(new QueryParameter("DataType", Dt_List.Columns[Gc.mFieldName].DataType.Name));
                    Do_Methods.AddDataRow(ref Dt_FilterFields, Sp);
                }
            }

            this.Cbo_SearchFilter.DataSource     = Dt_FilterFields;
            this.Cbo_SearchFilter.DataTextField  = "Desc";
            this.Cbo_SearchFilter.DataValueField = "Field";
            this.Cbo_SearchFilter.DataBind();

            this.ViewState[CnsDt_FilterFields]     = Dt_FilterFields;
            this.ViewState[CnsFilterString]        = "1 = 1";
            this.ViewState[CnsOrderString]         = "";
            this.ViewState[CnsDisplayFilterString] = "";
            this.ViewState[CnsDisplayOrderString]  = "";
        }
        void Details_SetPaginator(Int64 Top, Int64 Items)
        {
            Int64 Pages = (Int64)Items / (Int64)Top;

            if ((Items % Top) > 0)
            {
                Pages++;
            }

            DataTable Dt = new DataTable();

            Dt.Columns.Add("Page", typeof(Int64));
            for (Int64 Ct = 1; Ct <= Pages; Ct++)
            {
                List <QueryParameter> Sp = new List <QueryParameter>();
                Sp.Add(new QueryParameter("Page", Ct));
                Do_Methods.AddDataRow(ref Dt, Sp);
            }

            Layer01_Methods_Web.BindCombo(ref this.Cbo_Page, Dt, "Page", "Page");
            this.ViewState[CnsItemsMax] = Items;
        }