• 大小: 2.01M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-26
  • 语言: C#
  • 标签: 数据库  C#  操作  c    

资源简介

C#操作数据库实例

资源截图

代码片段和文件信息

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

namespace ExamSystem
{
    public  class CCDataGridView : DataGridView
    {
        public CCDataGridView()
        {
                       
        }
        //dtgrd datagridview
        //contendtable 显示得数据源
        //showfields 显示的字段
        //fieldtitle 显示字段的标题
        //columntype 显示列的显示类型(下拉列框)(T=textC=checkboxI=imageB=buttonO=comboboxL=list)
        //typetable 下拉列框对应数据
        public void UpdateDataGridView(DataTable ContentTable string[] showFields string[] Fieldstitle string[] ColumnTypeint[] ColumnWidht DataSet typeTable)
        {
            //DataGridView dtgrd =new DataGridVie

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2016-12-14 11:18  DatabaseManager\
     文件         195  2009-05-14 00:25  DatabaseManager\BakLog.xml
     文件        4210  2010-05-02 13:28  DatabaseManager\CCDataGridView.cs
     文件         221  2010-05-02 13:43  DatabaseManager\DBConfig.xml
     文件        8522  2016-12-14 11:18  DatabaseManager\DatabaseManager.csproj
     文件         478  2014-05-16 13:26  DatabaseManager\DatabaseManager.csproj.user
     文件         281  2015-07-07 13:34  DatabaseManager\DatabaseManager.csproj.vspscc
     文件        2560  2010-03-17 22:30  DatabaseManager\DatabaseManager.suo
     文件        2734  1998-06-20 04:01  DatabaseManager\INIT.ICO
     文件         484  2009-05-16 01:05  DatabaseManager\Program.cs
     目录           0  2016-12-14 11:18  DatabaseManager\Properties\
     文件        1208  2009-05-13 22:29  DatabaseManager\Properties\AssemblyInfo.cs
     文件        2870  2013-08-13 21:41  DatabaseManager\Properties\Resources.Designer.cs
     文件        5612  2009-05-13 22:29  DatabaseManager\Properties\Resources.resx
     文件        1115  2013-08-13 21:41  DatabaseManager\Properties\Settings.Designer.cs
     文件         249  2009-05-13 22:29  DatabaseManager\Properties\Settings.settings
     文件         263  2015-07-07 13:34  DatabaseManager\Properties\vssver2.scc
     文件         831  2010-03-17 22:05  DatabaseManager\UpgradeLog.xml
     目录           0  2016-12-14 11:18  DatabaseManager\_UpgradeReport_Files\
     文件        3348  2010-03-17 22:05  DatabaseManager\_UpgradeReport_Files\UpgradeReport.css
     文件       12505  2008-01-11 01:25  DatabaseManager\_UpgradeReport_Files\UpgradeReport.xslt
     文件          69  2010-03-17 22:05  DatabaseManager\_UpgradeReport_Files\UpgradeReport_Minus.gif
     文件          71  2010-03-17 22:05  DatabaseManager\_UpgradeReport_Files\UpgradeReport_Plus.gif
     目录           0  2016-12-14 11:18  DatabaseManager\bin\
     目录           0  2016-12-14 11:18  DatabaseManager\bin\Debug\
     文件          62  2009-05-16 02:25  DatabaseManager\bin\Debug\BakLog.xml
     目录           0  2016-12-14 11:34  DatabaseManager\bin\Debug\DBBak\
     文件         206  2009-11-03 21:42  DatabaseManager\bin\Debug\DBConfig.xml
     文件       33792  2016-12-13 23:37  DatabaseManager\bin\Debug\DatabaseManager.exe
     文件       50688  2016-12-13 23:37  DatabaseManager\bin\Debug\DatabaseManager.pdb
     文件       14328  2010-03-17 22:30  DatabaseManager\bin\Debug\DatabaseManager.vshost.exe
............此处省略69个文件信息

评论

共有 条评论