• 大小: 6.51MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-11-02
  • 语言: 其他
  • 标签: LookUpEdit  

资源简介

dev的LookUpEdit支持自由录入功能,dev版本13.1.8

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

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

            lookUpEdit1.Properties.ValueMember = “姓名“;
            lookUpEdit1.Properties.DisplayMember = “姓名“;
            lookUpEdit1.Properties.DataSource = createTable();
            myLookUpEdit1.Properties.ValueMember = “姓名“;
            myLookUpEdit1.Properties.DisplayMember = “姓名“;
            myLookUpEdit1.Properties.DataSource = createTable();
        }

        public DataTable createTable()
        {
            using (DataTable dt = new DataTable(“students“))
            {
                //创建列
                DataColumn dtc = new DataColumn(“姓名“ typeof(string));
                dt.Columns.Add(dtc);

                dtc = new DataColumn(“性别“ typeof(string));
                dt.Columns.Add(dtc);

                dtc = new DataColumn(“电话“ typeof(Int32));
                dt.Columns.Add(dtc);

                //添加数据到DataTable
                DataRow dr = dt.NewRow();
                dr[“姓名“] = “李四1“;
                dr[“性别“] = “男1“;
                dr[“电话“] = 54531;
                dt.Rows.Add(dr);

                dr = dt.NewRow();

                dr[“姓名“] = “李四2“;
                dr[“性别“] = “男2“;
                dr[“电话“] = 5731;
                dt.Rows.Add(dr);

                dr = dt.NewRow();

                dr[“姓名“] = “李四3“;
                dr[“电话“] = 5868451;
                dr[“性别“] = “女“;
                dt.Rows.Add(dr);

                dr = dt.NewRow();

                dr[“姓名“] = “李四3“;
                dr[“电话“] = 5868451;
                dr[“性别“] = “女“;
                dt.Rows.Add(dr);
                dr = dt.NewRow();

                dr[“姓名“] = “李四3“;
                dr[“电话“] = 5868451;
                dr[“性别“] = “女“;
                dt.Rows.Add(dr);
                dr = dt.NewRow();

                dr[“姓名“] = “李四3“;
                dr[“电话“] = 5868451;
                dr[“性别“] = “女“;
                dt.Rows.Add(dr);
                dr = dt.NewRow();

                dr[“姓名“] = “李四3“;
                dr[“电话“] = 5868451;
                dr[“性别“] = “女“;
                dt.Rows.Add(dr);
                dr = dt.NewRow();

                dr[“姓名“] = “李四3“;
                dr[“电话“] = 5868451;
                dr[“性别“] = “女“;
                dt.Rows.Add(dr);
                dr = dt.NewRow();

                dr[“姓名“] = “李四3“;
                dr[“电话“] = 5868451;
                dr[“性别“] = “女“;
                dt.Rows.Add(dr);
                dr = dt.NewRow();

                dr[“姓名“] = “李四3“;
                dr[“电话“] = 5868451;
                dr[“性别“] = “女“;
                dt.Rows.Add(dr);
                dr

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2015-08-05 15:15  MyLookUpEdit\
     目录           0  2015-08-05 15:17  MyLookUpEdit\MyLookUpEdit\
     文件         878  2015-08-05 15:15  MyLookUpEdit\MyLookUpEdit.sln
     文件       25088  2015-08-05 15:28  MyLookUpEdit\MyLookUpEdit.suo
     目录           0  2015-08-05 15:15  MyLookUpEdit\MyLookUpEdit\bin\
     目录           0  2015-08-05 15:21  MyLookUpEdit\MyLookUpEdit\bin\Debug\
     目录           0  2015-08-05 15:21  MyLookUpEdit\MyLookUpEdit\bin\Debug\de\
     文件     3195384  2015-08-05 08:53  MyLookUpEdit\MyLookUpEdit\bin\Debug\DevExpress.Data.v13.1.dll
     文件      914138  2015-08-05 08:53  MyLookUpEdit\MyLookUpEdit\bin\Debug\DevExpress.Data.v13.1.xml
     文件     2374648  2015-08-05 08:53  MyLookUpEdit\MyLookUpEdit\bin\Debug\DevExpress.Printing.v13.1.Core.dll
     文件      827885  2015-08-05 08:53  MyLookUpEdit\MyLookUpEdit\bin\Debug\DevExpress.Printing.v13.1.Core.xml
     文件       43512  2015-08-05 08:53  MyLookUpEdit\MyLookUpEdit\bin\Debug\DevExpress.Sparkline.v13.1.Core.dll
     文件       20648  2015-08-05 08:53  MyLookUpEdit\MyLookUpEdit\bin\Debug\DevExpress.Sparkline.v13.1.Core.xml
     文件     4267512  2015-08-05 08:53  MyLookUpEdit\MyLookUpEdit\bin\Debug\DevExpress.Utils.v13.1.dll
     文件      469324  2015-08-05 08:53  MyLookUpEdit\MyLookUpEdit\bin\Debug\DevExpress.Utils.v13.1.xml
     文件     2592248  2015-08-05 08:53  MyLookUpEdit\MyLookUpEdit\bin\Debug\DevExpress.XtraEditors.v13.1.dll
     文件     1411625  2015-08-05 08:53  MyLookUpEdit\MyLookUpEdit\bin\Debug\DevExpress.XtraEditors.v13.1.xml
     文件      158712  2015-08-05 08:53  MyLookUpEdit\MyLookUpEdit\bin\Debug\de\DevExpress.Data.v13.1.resources.dll
     文件       11768  2015-08-05 08:53  MyLookUpEdit\MyLookUpEdit\bin\Debug\de\DevExpress.Printing.v13.1.Core.resources.dll
     文件       25592  2015-08-05 08:53  MyLookUpEdit\MyLookUpEdit\bin\Debug\de\DevExpress.Utils.v13.1.resources.dll
     文件       45560  2015-08-05 08:53  MyLookUpEdit\MyLookUpEdit\bin\Debug\de\DevExpress.XtraEditors.v13.1.resources.dll
     目录           0  2015-08-05 15:21  MyLookUpEdit\MyLookUpEdit\bin\Debug\es\
     文件      168952  2015-08-05 08:53  MyLookUpEdit\MyLookUpEdit\bin\Debug\es\DevExpress.Data.v13.1.resources.dll
     文件       13304  2015-08-05 08:53  MyLookUpEdit\MyLookUpEdit\bin\Debug\es\DevExpress.Printing.v13.1.Core.resources.dll
     文件       26616  2015-08-05 08:53  MyLookUpEdit\MyLookUpEdit\bin\Debug\es\DevExpress.Utils.v13.1.resources.dll
     文件       66552  2015-08-05 08:53  MyLookUpEdit\MyLookUpEdit\bin\Debug\es\DevExpress.XtraEditors.v13.1.resources.dll
     目录           0  2015-08-05 15:21  MyLookUpEdit\MyLookUpEdit\bin\Debug\ja\
     文件      177656  2015-08-05 08:53  MyLookUpEdit\MyLookUpEdit\bin\Debug\ja\DevExpress.Data.v13.1.resources.dll
     文件       12280  2015-08-05 08:53  MyLookUpEdit\MyLookUpEdit\bin\Debug\ja\DevExpress.Printing.v13.1.Core.resources.dll
     文件       32760  2015-08-05 08:53  MyLookUpEdit\MyLookUpEdit\bin\Debug\ja\DevExpress.Utils.v13.1.resources.dll
     文件       80376  2015-08-05 08:53  MyLookUpEdit\MyLookUpEdit\bin\Debug\ja\DevExpress.XtraEditors.v13.1.resources.dll
............此处省略37个文件信息

评论

共有 条评论

相关资源