private void InitializeComponent()
        {
            this.DelRec.Click            += new EventHandler(this.DelRec_Click);
            this.DataGrid1.EditCommand   += new DataGridCommandEventHandler(this.DataGrid_Edit);
            this.DataGrid1.CancelCommand += new DataGridCommandEventHandler(DataGrid_Cancel);
            this.DataGrid1.UpdateCommand += new DataGridCommandEventHandler(this.DataGrid_Update);
            this.Load += new EventHandler(this.Page_Load);

            DataGrid1.LoadEditColumn();
            DataGrid1.ColumnSpan = 7;
        }
        private void InitializeComponent()
        {
            this.DataGrid1.EditCommand   += new DataGridCommandEventHandler(this.DataGrid_Edit);
            this.DataGrid1.CancelCommand += new DataGridCommandEventHandler(this.DataGrid_Cancel);
            this.DataGrid1.ItemDataBound += new DataGridItemEventHandler(this.DataGrid_ItemDataBound);
            this.DataGrid1.UpdateCommand += new DataGridCommandEventHandler(this.DataGrid_Update);

            DataGrid1.LoadEditColumn();
            DataGrid1.DataKeyField = "name";
            DataGrid1.AllowSorting = false;
            DataGrid1.AllowPaging  = false;
            DataGrid1.ShowFooter   = false;
        }
        private void InitializeComponent()
        {
            this.DataGrid1.EditCommand   += new DataGridCommandEventHandler(this.DataGrid_Edit);
            this.DataGrid1.CancelCommand += new DataGridCommandEventHandler(DataGrid_Cancel);
            this.DataGrid1.ItemDataBound += new DataGridItemEventHandler(this.DataGrid_ItemDataBound);
            this.DataGrid1.UpdateCommand += new DataGridCommandEventHandler(this.DataGrid_Update);

            DataGrid1.LoadEditColumn();
            DataGrid1.TableHeaderName = "在线列表";
            DataGrid1.DataKeyField    = "groupid";
            DataGrid1.ColumnSpan      = 5;
            DataGrid1.SaveDSViewState = true;
        }
Esempio n. 4
0
        private void InitializeComponent()
        {
            this.TabControl1.InitTabPage();
            this.DataGrid1.EditCommand   += new DataGridCommandEventHandler(this.DataGrid_Edit);
            this.DataGrid1.CancelCommand += new DataGridCommandEventHandler(DataGrid_Cancel);
            this.DataGrid1.ItemDataBound += new DataGridItemEventHandler(this.DataGrid_ItemDataBound);
            this.Save.Click += new EventHandler(this.Save_Click);

            formula.IsReplaceInvertedComma = false;

            DataGrid1.LoadEditColumn();
            DataGrid1.AllowSorting = false;
            DataGrid1.AllowPaging  = false;
            DataGrid1.ShowFooter   = false;
        }
Esempio n. 5
0
        private void InitializeComponent()
        {
            this.DataGrid1.EditCommand   += new DataGridCommandEventHandler(this.DataGrid_Edit);
            this.DataGrid1.CancelCommand += new DataGridCommandEventHandler(DataGrid_Cancel);
            this.DataGrid1.ItemDataBound += new DataGridItemEventHandler(this.DataGrid_ItemDataBound);
            this.DataGrid1.UpdateCommand += new DataGridCommandEventHandler(this.DataGrid_Update);
            this.SaveInfo.Click          += new EventHandler(this.SaveInfo_Click);
            this.StartFullIndex.Click    += new EventHandler(this.StartFullIndex_Click);

            this.Load += new EventHandler(this.Page_Load);

            DataGrid1.LoadEditColumn();
            DataGrid1.DataKeyField    = "id";
            DataGrid1.TableHeaderName = "帖子分表列表";
            DataGrid1.ColumnSpan      = 4;
            DataGrid1.SaveDSViewState = true;
        }
        private void InitializeComponent()
        {
            this.DataGrid1.ItemDataBound += new DataGridItemEventHandler(this.DataGrid_ItemDataBound);

            DataGrid1.LoadEditColumn();
        }