资源简介

winform(c#) DataGridView控件多维合并表头(有使用教程),从网上下载来的资料并不是很全,所以我自己动手做了个,效果很好,里面附有几个需要注意的地方的文档教程,方面大家掌握运用

资源截图

代码片段和文件信息

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

namespace DataGridViewSampCs
{
    public partial class Form2 : Form
    {
        public Form2()
        {
            InitializeComponent();
        }

        private void headerUnitView1_Scroll(object sender ScrollEventArgs e)
        {
            headerUnitView1.Refresh();
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2008-01-21 17:02  DataGridViewSampCs\
     目录           0  2008-01-23 08:59  DataGridViewSampCs\DataGridViewSampCs\
     文件         944  2011-07-21 16:56  DataGridViewSampCs\DataGridViewSampCs.sln
     文件       21504  2011-07-22 14:25  DataGridViewSampCs\DataGridViewSampCs.suo
     目录           0  2008-01-21 17:02  DataGridViewSampCs\DataGridViewSampCs\bin\
     目录           0  2008-01-21 17:04  DataGridViewSampCs\DataGridViewSampCs\bin\Debug\
     文件       15360  2011-07-22 14:20  DataGridViewSampCs\DataGridViewSampCs\bin\Debug\DataGridViewSampCs.exe
     文件       32256  2011-07-22 14:20  DataGridViewSampCs\DataGridViewSampCs\bin\Debug\DataGridViewSampCs.pdb
     文件       14328  2011-07-22 14:18  DataGridViewSampCs\DataGridViewSampCs\bin\Debug\DataGridViewSampCs.vshost.exe
     文件         490  2007-07-21 01:33  DataGridViewSampCs\DataGridViewSampCs\bin\Debug\DataGridViewSampCs.vshost.exe.manifest
     目录           0  2008-01-22 11:24  DataGridViewSampCs\DataGridViewSampCs\bin\Release\
     文件       24576  2008-01-22 11:24  DataGridViewSampCs\DataGridViewSampCs\bin\Release\DataGridViewSampCs.exe
     文件       30208  2008-01-22 11:24  DataGridViewSampCs\DataGridViewSampCs\bin\Release\DataGridViewSampCs.pdb
     文件        3840  2011-07-22 14:17  DataGridViewSampCs\DataGridViewSampCs\DataGridViewSampCs.csproj
     文件         491  2011-07-22 11:19  DataGridViewSampCs\DataGridViewSampCs\Form2.cs
     文件       11068  2011-07-22 11:19  DataGridViewSampCs\DataGridViewSampCs\Form2.Designer.cs
     文件        7286  2011-07-22 11:19  DataGridViewSampCs\DataGridViewSampCs\Form2.resx
     文件       10683  2008-01-23 08:36  DataGridViewSampCs\DataGridViewSampCs\HeaderUnitView.cs
     文件        1587  2008-01-22 10:03  DataGridViewSampCs\DataGridViewSampCs\HeaderUnitView.Designer.cs
     文件        5995  2008-01-21 10:49  DataGridViewSampCs\DataGridViewSampCs\HeaderUnitView.resx
     目录           0  2008-01-21 17:04  DataGridViewSampCs\DataGridViewSampCs\obj\
     文件         818  2008-01-23 08:59  DataGridViewSampCs\DataGridViewSampCs\obj\DataGridViewSampCs.csproj.FileList.txt
     目录           0  2008-01-23 08:58  DataGridViewSampCs\DataGridViewSampCs\obj\Debug\
     文件        1165  2011-07-22 14:22  DataGridViewSampCs\DataGridViewSampCs\obj\Debug\DataGridViewSampCs.csproj.FileListAbsolute.txt
     文件         914  2011-07-22 14:20  DataGridViewSampCs\DataGridViewSampCs\obj\Debug\DataGridViewSampCs.csproj.GenerateResource.Cache
     文件       15360  2011-07-22 14:20  DataGridViewSampCs\DataGridViewSampCs\obj\Debug\DataGridViewSampCs.exe
     文件         180  2011-07-22 14:20  DataGridViewSampCs\DataGridViewSampCs\obj\Debug\DataGridViewSampCs.Form2.resources
     文件         180  2011-07-22 14:20  DataGridViewSampCs\DataGridViewSampCs\obj\Debug\DataGridViewSampCs.HeaderUnitView.resources
     文件       32256  2011-07-22 14:20  DataGridViewSampCs\DataGridViewSampCs\obj\Debug\DataGridViewSampCs.pdb
     文件         180  2011-07-22 14:20  DataGridViewSampCs\DataGridViewSampCs\obj\Debug\DataGridViewSampCs.Properties.Resources.resources
     目录           0  2008-01-21 17:02  DataGridViewSampCs\DataGridViewSampCs\obj\Debug\TempPE\
............此处省略23个文件信息

评论

共有 条评论