• 大小: 0.09M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: GridView  实例  DataGridView  

资源简介

datagridview 自定义单元格样式以及内容

资源截图

代码片段和文件信息

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;
using System.Collections;

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

        private void Form1_Load(object sender EventArgs e)
        {
            DataGridViewCheckBoxColumn newColumn = new DataGridViewCheckBoxColumn();
            m_CAtDataGridView.Columns.Insert(0 newColumn);
            newColumn.HeaderText = “选择“;            
            DataGridViewTextBoxColumn Texture = new DataGridViewTextBoxColumn();
            Texture.HeaderText = “字段“;
            m_CAtData

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

     文件      11776  2013-07-12 10:01  GridViewAndContorl\GridViewAndContorl\bin\Debug\GridViewAndContorl.exe

     文件      26112  2013-07-12 10:01  GridViewAndContorl\GridViewAndContorl\bin\Debug\GridViewAndContorl.pdb

     文件      11600  2013-07-12 10:03  GridViewAndContorl\GridViewAndContorl\bin\Debug\GridViewAndContorl.vshost.exe

     文件        490  2010-03-17 22:39  GridViewAndContorl\GridViewAndContorl\bin\Debug\GridViewAndContorl.vshost.exe.manifest

     文件       3274  2013-07-12 10:01  GridViewAndContorl\GridViewAndContorl\Form1.cs

     文件       3264  2013-07-12 10:01  GridViewAndContorl\GridViewAndContorl\Form1.Designer.cs

     文件       5817  2013-07-12 10:01  GridViewAndContorl\GridViewAndContorl\Form1.resx

     文件       4831  2013-07-11 14:09  GridViewAndContorl\GridViewAndContorl\GridViewAndContorl.csproj

     文件       4440  2013-07-12 09:12  GridViewAndContorl\GridViewAndContorl\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       7004  2013-07-12 10:01  GridViewAndContorl\GridViewAndContorl\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件        292  2013-07-12 10:01  GridViewAndContorl\GridViewAndContorl\obj\x86\Debug\GenerateResource.read.1.tlog

     文件        726  2013-07-12 10:01  GridViewAndContorl\GridViewAndContorl\obj\x86\Debug\GenerateResource.write.1.tlog

     文件        961  2013-07-12 10:03  GridViewAndContorl\GridViewAndContorl\obj\x86\Debug\GridViewAndContorl.csproj.FileListAbsolute.txt

     文件      11776  2013-07-12 10:01  GridViewAndContorl\GridViewAndContorl\obj\x86\Debug\GridViewAndContorl.exe

     文件        602  2013-07-11 15:56  GridViewAndContorl\GridViewAndContorl\obj\x86\Debug\gridviewandcontorl.exe.licenses

     文件        180  2013-07-12 10:01  GridViewAndContorl\GridViewAndContorl\obj\x86\Debug\GridViewAndContorl.Form1.resources

     文件      26112  2013-07-12 10:01  GridViewAndContorl\GridViewAndContorl\obj\x86\Debug\GridViewAndContorl.pdb

     文件        180  2013-07-11 14:09  GridViewAndContorl\GridViewAndContorl\obj\x86\Debug\GridViewAndContorl.Properties.Resources.resources

     文件      75359  2013-07-12 09:27  GridViewAndContorl\GridViewAndContorl\obj\x86\Debug\ResolveAssemblyReference.cache

     文件        499  2013-07-11 14:03  GridViewAndContorl\GridViewAndContorl\Program.cs

     文件       1368  2013-07-11 14:03  GridViewAndContorl\GridViewAndContorl\Properties\AssemblyInfo.cs

     文件        261  2013-07-11 15:56  GridViewAndContorl\GridViewAndContorl\Properties\licenses.licx

     文件       2886  2013-07-11 14:03  GridViewAndContorl\GridViewAndContorl\Properties\Resources.Designer.cs

     文件       5612  2013-07-11 14:03  GridViewAndContorl\GridViewAndContorl\Properties\Resources.resx

     文件       1103  2013-07-11 14:03  GridViewAndContorl\GridViewAndContorl\Properties\Settings.Designer.cs

     文件        249  2013-07-11 14:03  GridViewAndContorl\GridViewAndContorl\Properties\Settings.settings

     文件        896  2013-07-11 14:03  GridViewAndContorl\GridViewAndContorl.sln

    ..A..H.     35328  2013-07-12 09:56  GridViewAndContorl\GridViewAndContorl.suo

     文件       8012  2013-07-12 09:47  GridViewAndContorl\无标题.png

     文件      34893  2013-07-12 10:01  GridViewAndContorl\无标题2.png

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

评论

共有 条评论