• 大小: 29.40M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: DevExpress  GridControl  C#  

资源简介

DevExpress(https://www.daboke.com)的GridControl控件可以从任何数据源绑定数据并进行增删查改等操作,和VS自带的dataGridView控件对比,GridControl(https://space.bilibili.com/580719958)控件可以实现更多自定义的功能,界面UI也更精美,今天我和大家分享一个Demo演示GridControl控件的增删查改操作!


资源截图

代码片段和文件信息

using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Drawing;
using System.Runtime.CompilerServices;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using DevExpress.XtraEditors.Repository;
using DevExpress.XtraGrid;
using DevExpress.XtraGrid.Columns;
using DevExpress.XtraGrid.Views.Grid;

namespace dataGrid
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();

            //gridView1标题
            gridView1.GroupPanelText = “深圳精品4S旗舰店订单管理:“;

            //gridView1顶部显示添加行
            gridView1.OptionsView.NewItemRowPosition = NewItemRowPosition.Top;

            //gridView1允许编辑
            gridView1.OptionsBehavior.Editable = true;

         

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2020-06-20 18:53  dataGrid\
     目录           0  2020-06-20 18:53  dataGrid\.vs\
     目录           0  2020-06-20 18:53  dataGrid\.vs\dataGrid\
     目录           0  2020-06-20 18:53  dataGrid\.vs\dataGrid\v16\
     文件       52224  2020-06-20 20:37  dataGrid\.vs\dataGrid\v16\.suo
     目录           0  2020-06-20 18:53  dataGrid\.vs\dataGrid\v16\Server\
     目录           0  2020-06-20 20:37  dataGrid\.vs\dataGrid\v16\Server\sqlite3\
     文件           0  2020-06-20 18:53  dataGrid\.vs\dataGrid\v16\Server\sqlite3\db.lock
     文件     1900544  2020-06-20 20:37  dataGrid\.vs\dataGrid\v16\Server\sqlite3\storage.ide
     目录           0  2020-06-20 20:36  dataGrid\dataGrid\
     文件         189  2020-06-20 18:53  dataGrid\dataGrid\App.config
     目录           0  2020-06-20 18:53  dataGrid\dataGrid\bin\
     目录           0  2020-06-20 19:15  dataGrid\dataGrid\bin\Debug\
     文件       16384  2020-06-20 20:36  dataGrid\dataGrid\bin\Debug\dataGrid.exe
     文件         189  2020-06-20 18:53  dataGrid\dataGrid\bin\Debug\dataGrid.exe.config
     文件       38400  2020-06-20 20:36  dataGrid\dataGrid\bin\Debug\dataGrid.pdb
     目录           0  2020-06-20 19:15  dataGrid\dataGrid\bin\Debug\de\
     文件      176408  2020-06-07 11:08  dataGrid\dataGrid\bin\Debug\de\DevExpress.Data.v20.1.resources.dll
     文件       30488  2020-06-07 11:09  dataGrid\dataGrid\bin\Debug\de\DevExpress.Office.v20.1.Core.resources.dll
     文件       15640  2020-06-07 11:09  dataGrid\dataGrid\bin\Debug\de\DevExpress.Pdf.v20.1.Core.resources.dll
     文件       78104  2020-06-07 11:09  dataGrid\dataGrid\bin\Debug\de\DevExpress.Printing.v20.1.Core.resources.dll
     文件      219928  2020-06-07 11:10  dataGrid\dataGrid\bin\Debug\de\DevExpress.RichEdit.v20.1.Core.resources.dll
     文件       13080  2020-06-07 11:09  dataGrid\dataGrid\bin\Debug\de\DevExpress.Sparkline.v20.1.Core.resources.dll
     文件       27416  2020-06-07 11:09  dataGrid\dataGrid\bin\Debug\de\DevExpress.Utils.v20.1.resources.dll
     文件       46360  2020-06-07 11:09  dataGrid\dataGrid\bin\Debug\de\DevExpress.XtraBars.v20.1.resources.dll
     文件      123672  2020-06-07 11:09  dataGrid\dataGrid\bin\Debug\de\DevExpress.XtraEditors.v20.1.resources.dll
     文件       44824  2020-06-07 11:09  dataGrid\dataGrid\bin\Debug\de\DevExpress.XtraGrid.v20.1.resources.dll
     文件       18712  2020-06-07 11:09  dataGrid\dataGrid\bin\Debug\de\DevExpress.XtraLayout.v20.1.resources.dll
     文件       24344  2020-06-07 11:10  dataGrid\dataGrid\bin\Debug\de\DevExpress.XtraPrinting.v20.1.resources.dll
     文件       21272  2020-06-07 11:10  dataGrid\dataGrid\bin\Debug\de\DevExpress.XtraTreeList.v20.1.resources.dll
     文件      401176  2020-06-07 11:08  dataGrid\dataGrid\bin\Debug\DevExpress.Data.Desktop.v20.1.dll
............此处省略99个文件信息

评论

共有 条评论