Wpf datagrid 增删改查

上传者: zimoyidai | 上传时间: 2012-08-20 00:00:00 | 文件大小: 837KB | 文件类型: rar
需要一个对datagrid控件进行的操作,不需要别的界面,自己动手做了一个。 本例子是wpf中datagrid的增加修改,对于datagrid中的canuseraddrows=true,对当前空白行进行的添加数据,修改时,鼠标离开焦点可自动更新数据库,删除等等。不需要多余的界面进行添加修改等,利用datagrid的属性,事件等进行的直接操作。 注意:本例子是连接的odbc数据库,利用的时候可改变一下连接字符串,连接自己想要的数据库,方可运行。

文件下载

资源详情

[{"title":"( 67 个子文件 837KB ) Wpf datagrid 增删改查","children":[{"title":"WpfEditConfig","children":[{"title":"WpfEditConfig","children":[{"title":"bin","children":[{"title":"Release","children":null,"spread":false},{"title":"hexie.xls <span style='color:#111;'> 14.50KB </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"WpfEditConfig.pdb <span style='color:#111;'> 55.50KB </span>","children":null,"spread":false},{"title":"WpfEditConfig.exe <span style='color:#111;'> 21.50KB </span>","children":null,"spread":false},{"title":"WpfEditConfig.vshost.exe.config <span style='color:#111;'> 993B </span>","children":null,"spread":false},{"title":"WpfEditConfig.exe.config <span style='color:#111;'> 993B </span>","children":null,"spread":false},{"title":"WpfEditConfig.vshost.exe <span style='color:#111;'> 11.33KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Add.xaml <span style='color:#111;'> 499B </span>","children":null,"spread":false},{"title":"App.xaml <span style='color:#111;'> 324B </span>","children":null,"spread":false},{"title":"obj","children":[{"title":"x86","children":[{"title":"Debug","children":[{"title":"Add.g.cs <span style='color:#111;'> 2.84KB </span>","children":null,"spread":false},{"title":"WpfEditConfig.pdb <span style='color:#111;'> 55.50KB </span>","children":null,"spread":false},{"title":"WpfEditConfig.exe <span style='color:#111;'> 21.50KB </span>","children":null,"spread":false},{"title":"DeleteInfo.g.i.cs <span style='color:#111;'> 10.71KB </span>","children":null,"spread":false},{"title":"App.g.i.cs <span style='color:#111;'> 2.17KB </span>","children":null,"spread":false},{"title":"WpfEditConfig_MarkupCompile.cache <span style='color:#111;'> 256B </span>","children":null,"spread":false},{"title":"GeneratedInternalTypeHelper.g.i.cs <span style='color:#111;'> 2.85KB </span>","children":null,"spread":false},{"title":"WpfEditConfig_Content.g.i.cs <span style='color:#111;'> 531B </span>","children":null,"spread":false},{"title":"inserInfo.g.i.cs <span style='color:#111;'> 10.68KB </span>","children":null,"spread":false},{"title":"Add.g.i.cs <span style='color:#111;'> 2.84KB </span>","children":null,"spread":false},{"title":"GenerateResource.write.1.tlog <span style='color:#111;'> 318B </span>","children":null,"spread":false},{"title":"App.g.cs <span style='color:#111;'> 2.17KB </span>","children":null,"spread":false},{"title":"Window1.g.i.cs <span style='color:#111;'> 6.10KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 7.29KB </span>","children":null,"spread":false},{"title":"MainWindow.g.cs <span style='color:#111;'> 5.95KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'> 86.42KB </span>","children":null,"spread":false},{"title":"WpfEditConfig.csproj.FileListAbsolute.txt <span style='color:#111;'> 1.11KB </span>","children":null,"spread":false},{"title":"GenerateResource.read.1.tlog <span style='color:#111;'> 128B </span>","children":null,"spread":false},{"title":"TempPE","children":[{"title":"DB.AchanDataSet.Designer.cs.dll <span style='color:#111;'> 9.50KB </span>","children":null,"spread":false},{"title":"supercontrol_zxysDataSet.Designer.cs.dll <span style='color:#111;'> 740.50KB </span>","children":null,"spread":false},{"title":"supercontrol_zxysCache.Designer.cs.dll <span style='color:#111;'> 240.50KB </span>","children":null,"spread":false},{"title":"Ana.designer.cs.dll <span style='color:#111;'> 15.50KB </span>","children":null,"spread":false},{"title":"Achan.designer.cs.dll <span style='color:#111;'> 5.00KB </span>","children":null,"spread":false},{"title":"Properties.Resources.Designer.cs.dll <span style='color:#111;'> 5.50KB </span>","children":null,"spread":false},{"title":"DB.Achan.designer.cs.dll <span style='color:#111;'> 5.00KB </span>","children":null,"spread":false},{"title":"Service References.DBService.Reference.cs.dll <span style='color:#111;'> 15.00KB </span>","children":null,"spread":false}],"spread":false},{"title":"WpfEditConfig_MarkupCompile.i.cache <span style='color:#111;'> 255B </span>","children":null,"spread":false},{"title":"menuPage.g.i.cs <span style='color:#111;'> 5.00KB </span>","children":null,"spread":false},{"title":"updateInfo.g.i.cs <span style='color:#111;'> 5.75KB </span>","children":null,"spread":false},{"title":"WpfEditConfig.Properties.Resources.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"hexie.xls <span style='color:#111;'> 14.50KB </span>","children":null,"spread":false},{"title":"Add.baml <span style='color:#111;'> 778B </span>","children":null,"spread":false},{"title":"MainWindow.g.i.cs <span style='color:#111;'> 5.95KB </span>","children":null,"spread":false},{"title":"MainWindow.baml <span style='color:#111;'> 2.86KB </span>","children":null,"spread":false},{"title":"WpfEditConfig.g.resources <span style='color:#111;'> 3.88KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":"TypeInfoDAL.cs <span style='color:#111;'> 8.79KB </span>","children":null,"spread":false},{"title":"Add.xaml.cs <span style='color:#111;'> 612B </span>","children":null,"spread":false},{"title":"Sql server","children":[{"title":"supercontrol_zxys.mdf <span style='color:#111;'> 3.69MB </span>","children":null,"spread":false},{"title":"user_zxys.mdf <span style='color:#111;'> 3.00MB </span>","children":null,"spread":false},{"title":"user_zxys_log.ldf <span style='color:#111;'> 1024.00KB </span>","children":null,"spread":false},{"title":"supercontrol_zxys_log.ldf <span style='color:#111;'> 1024.00KB </span>","children":null,"spread":false}],"spread":true},{"title":"App.xaml.cs <span style='color:#111;'> 408B </span>","children":null,"spread":false},{"title":"DBServiceold.svc <span style='color:#111;'> 127B </span>","children":null,"spread":false},{"title":"DBServiceold.svc.cs <span style='color:#111;'> 13.24KB </span>","children":null,"spread":false},{"title":"TypeInfoModel.cs <span style='color:#111;'> 3.28KB </span>","children":null,"spread":false},{"title":"app.config <span style='color:#111;'> 993B </span>","children":null,"spread":false},{"title":"Service References","children":null,"spread":false},{"title":"WpfEditConfig.csproj.user <span style='color:#111;'> 452B </span>","children":null,"spread":false},{"title":"WpfEditConfig.csproj <span style='color:#111;'> 7.21KB </span>","children":null,"spread":false},{"title":"MainWindow.xaml <span style='color:#111;'> 3.61KB </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"Resources.resx <span style='color:#111;'> 5.48KB </span>","children":null,"spread":false},{"title":"Settings.settings <span style='color:#111;'> 1.72KB </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 2.14KB </span>","children":null,"spread":false},{"title":"Settings.Designer.cs <span style='color:#111;'> 2.32KB </span>","children":null,"spread":false},{"title":"Resources.Designer.cs <span style='color:#111;'> 2.81KB </span>","children":null,"spread":false}],"spread":false},{"title":"MainWindow.xaml.cs <span style='color:#111;'> 4.51KB </span>","children":null,"spread":false}],"spread":false},{"title":"可视化工具.txt <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"运行说明.txt <span style='color:#111;'> 68B </span>","children":null,"spread":false},{"title":"WpfEditConfig.sln <span style='color:#111;'> 1.52KB </span>","children":null,"spread":false},{"title":"WpfEditConfig.suo <span style='color:#111;'> 77.00KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

  • lkj116 :
    非常好的资料
    2018-08-24
  • gulo_endy :
    还没有用过
    2017-11-28
  • Guo_Bin_BJTU :
    居然要连ODBC数据库,我晕
    2017-08-22
  • SQL数据库 :
    学基础,很好的教程
    2016-09-08
  • baidu_20399169 :
    增删改查 里面就只有删查。。多点真诚好么、
    2016-06-04

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明