protected virtual void InitDevicesGridView(GridView grdView)
        {
            grdView.Columns.Clear();
            //设备ID
            var colNo = ControlUtilityTool.AddGridViewColum(grdView, IS_SELECT, DEV_ID_ALIAS);

            colNo.OptionsColumn.AllowEdit = true;
            colNo.Width = 100;
            colNo.OptionsColumn.FixedWidth = true;
            var chkedt = this.GetRepositoryCheckEdit(grdView);

            chkedt.GlyphAlignment = HorzAlignment.Near;
            colNo.ColumnEdit      = chkedt;
            colNo.ShowButtonMode  = ShowButtonModeEnum.ShowAlways;

            //设备MAC地址
            this.AddOneGridViewColumn(grdView, DEV_MAC, DEV_MAC_ALIAS, 150);

            //设备IP地址
            this.AddOneGridViewColumn(grdView, DEV_IP, DEV_IP_ALIAS, 120);

            //子网掩码
            this.AddOneGridViewColumn(grdView, SUBNET_MARK, SUBNET_MARK_ALIAS, 120);

            //网关
            this.AddOneGridViewColumn(grdView, GATE_WAY, GATE_WAY_ALIAS, 120);
        }
        protected GridColumn AddOneGridViewColumn(GridView grdView, string fieldName, string caption, int columnWidth)
        {
            GridColumn oneColumn = ControlUtilityTool.AddGridViewColum(grdView, fieldName, caption);

            oneColumn.OptionsColumn.AllowFocus = false;   //去掉焦点
            oneColumn.Width = columnWidth;
            oneColumn.OptionsColumn.FixedWidth = true;
            oneColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            oneColumn.AppearanceCell.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
            return(oneColumn);
        }