コード例 #1
0
        private void SetTag()
        {
            //设置Tag
            FlexGridColumnDefinition fdc = new FlexGridColumnDefinition();

            fdc.AddColumn("Code", "DLL名称", DataGridViewColumnTypeEnum.TextBox, true, 400, DataGridViewContentAlignment.MiddleLeft, true, 800);
            fdc.AddColumn("Name", "备注", DataGridViewColumnTypeEnum.TextBox, true, 400, DataGridViewContentAlignment.MiddleLeft, true, 800);
            dgvQuery.Tag = fdc.GetGridTagString();
            UIHelper.BindDataGridView(dgvQuery, null, true);
        }
コード例 #2
0
        private void SetTag()
        {
            //查询结果
            FlexGridColumnDefinition fdc = new FlexGridColumnDefinition();

            fdc.AddColumn("ROWNO", "序号", DataGridViewColumnTypeEnum.TextBox, true, 40, DataGridViewContentAlignment.MiddleLeft, false, 800);
            fdc.AddColumn("IS_SELECTED", "选择", DataGridViewColumnTypeEnum.CheckBox, _IsMoreSelected, 60, DataGridViewContentAlignment.MiddleCenter, true, 800);
            fdc.AddColumn("DB_CONFIG_CODE", "配置编码", DataGridViewColumnTypeEnum.TextBox, true, 80, DataGridViewContentAlignment.MiddleLeft, false, 800);
            fdc.AddColumn("DB_CONFIG_NAME", "配置名称", DataGridViewColumnTypeEnum.TextBox, true, 100, DataGridViewContentAlignment.MiddleLeft, false, 800);
            //fdc.AddColumn("DB_TYPE_" + "_NAME", "数据库类型", DataGridViewColumnTypeEnum.TextBox, true, 160, DataGridViewContentAlignment.MiddleLeft, false, 800);
            fdc.AddColumn("SERVER_IP", "服务器IP", DataGridViewColumnTypeEnum.TextBox, true, 260, DataGridViewContentAlignment.MiddleLeft, false, 800);
            fdc.AddColumn("DB_NAME", "数据库名称", DataGridViewColumnTypeEnum.TextBox, true, 160, DataGridViewContentAlignment.MiddleLeft, false, 800);
            fdc.AddColumn(DT_VE_DB_SUPPLIER.REMARK, "备注", DataGridViewColumnTypeEnum.TextBox, true, 160, DataGridViewContentAlignment.MiddleLeft, false, 800);
            fdc.AddColumn(DT_VE_DB_SUPPLIER.CREATE_TIME, "创建日期", DataGridViewColumnTypeEnum.TextBox, true, 100, DataGridViewContentAlignment.MiddleLeft, false, 800);
            dgvQuery.Tag = fdc.GetGridTagString();
            UIHelper.BindDataGridView(dgvQuery, null, true);
        }