资源简介

ListView 中实现可编辑文本或双击出现下拉列表框 重写listview空间,在控件中添加下拉框和文本框

资源截图

代码片段和文件信息

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 WinFormListviewAddContrl
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            AddData();
        }
        public void AddData()
        {
            this.cListView1.Columns.Add(“姓名“60 HorizontalAlignment.Left);
            this.cListView1.Columns.Add(“性别“ 60 HorizontalAlignment.Left);
            this.cListView1.Columns.Add(“年龄“ 60 HorizontalAlignment.Left);
            this.cListView1.Columns.Add(“公司“ 60 HorizontalAlignment.Left);
            this.cListView1.Items.Add(new ListViewItem(new String[] { “白云一缕“ “男“ “23“ “GANA“}));
            this.cListView1.Items.Add(new ListViewItem(new String[] { “李雷“ “男“ “23“ “GANA“ }));
            this.cListView1.Items.Add(new ListViewItem(new String[] { “白云一缕“ “男“ “23“ “GANA“ }));
            this.cListView1.Items.Add(new ListViewItem(new String[] { “李雷“ “男“ “23“ “GANA“ }));

        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      11776  2009-03-17 12:15  WinFormListviewAddContrl\WinFormListviewAddContrl\bin\Debug\WinFormListviewAddContrl.exe

     文件      32256  2009-03-17 12:15  WinFormListviewAddContrl\WinFormListviewAddContrl\bin\Debug\WinFormListviewAddContrl.pdb

     文件      14328  2009-03-18 10:27  WinFormListviewAddContrl\WinFormListviewAddContrl\bin\Debug\WinFormListviewAddContrl.vshost.exe

     文件        490  2007-07-21 02:33  WinFormListviewAddContrl\WinFormListviewAddContrl\bin\Debug\WinFormListviewAddContrl.vshost.exe.manifest

     目录          0  2009-03-12 14:17  WinFormListviewAddContrl\WinFormListviewAddContrl\bin\Debug

     目录          0  2009-03-12 14:12  WinFormListviewAddContrl\WinFormListviewAddContrl\bin

     文件       1215  2009-03-17 10:35  WinFormListviewAddContrl\WinFormListviewAddContrl\Form1.cs

     文件       2210  2009-03-17 10:35  WinFormListviewAddContrl\WinFormListviewAddContrl\Form1.Designer.cs

     文件       5814  2009-03-17 10:35  WinFormListviewAddContrl\WinFormListviewAddContrl\Form1.resx

     文件       5068  2009-03-17 12:15  WinFormListviewAddContrl\WinFormListviewAddContrl\ListviewEx.cs

     目录          0  2009-03-12 14:38  WinFormListviewAddContrl\WinFormListviewAddContrl\obj\Debug\Refactor

     目录          0  2009-03-12 14:12  WinFormListviewAddContrl\WinFormListviewAddContrl\obj\Debug\TempPE

     文件        987  2009-03-18 10:27  WinFormListviewAddContrl\WinFormListviewAddContrl\obj\Debug\WinFormListviewAddContrl.csproj.FileListAbsolute.txt

     文件        847  2009-03-17 10:35  WinFormListviewAddContrl\WinFormListviewAddContrl\obj\Debug\WinFormListviewAddContrl.csproj.GenerateResource.Cache

     文件      11776  2009-03-17 12:15  WinFormListviewAddContrl\WinFormListviewAddContrl\obj\Debug\WinFormListviewAddContrl.exe

     文件        180  2009-03-17 10:35  WinFormListviewAddContrl\WinFormListviewAddContrl\obj\Debug\WinFormListviewAddContrl.Form1.resources

     文件      32256  2009-03-17 12:15  WinFormListviewAddContrl\WinFormListviewAddContrl\obj\Debug\WinFormListviewAddContrl.pdb

     文件        180  2009-03-12 14:39  WinFormListviewAddContrl\WinFormListviewAddContrl\obj\Debug\WinFormListviewAddContrl.Properties.Resources.resources

     目录          0  2009-03-17 12:15  WinFormListviewAddContrl\WinFormListviewAddContrl\obj\Debug

     目录          0  2009-03-12 14:12  WinFormListviewAddContrl\WinFormListviewAddContrl\obj

     文件        505  2009-03-12 14:12  WinFormListviewAddContrl\WinFormListviewAddContrl\Program.cs

     文件       1380  2009-03-12 14:12  WinFormListviewAddContrl\WinFormListviewAddContrl\Properties\AssemblyInfo.cs

     文件       2898  2009-03-12 14:12  WinFormListviewAddContrl\WinFormListviewAddContrl\Properties\Resources.Designer.cs

     文件       5612  2009-03-12 14:12  WinFormListviewAddContrl\WinFormListviewAddContrl\Properties\Resources.resx

     文件       1109  2009-03-12 14:12  WinFormListviewAddContrl\WinFormListviewAddContrl\Properties\Settings.Designer.cs

     文件        249  2009-03-12 14:12  WinFormListviewAddContrl\WinFormListviewAddContrl\Properties\Settings.settings

     目录          0  2009-03-12 14:12  WinFormListviewAddContrl\WinFormListviewAddContrl\Properties

     文件       3850  2009-03-12 14:39  WinFormListviewAddContrl\WinFormListviewAddContrl\WinFormListviewAddContrl.csproj

     目录          0  2009-03-17 12:15  WinFormListviewAddContrl\WinFormListviewAddContrl

     文件        962  2009-03-12 14:12  WinFormListviewAddContrl\WinFormListviewAddContrl.sln

............此处省略5个文件信息

评论

共有 条评论