在Windos froms 程序中,DataGrid控件中,怎样才能实现对当前的数据可以修改,而不能添加呢? ya,没用过winform的,web的倒是简单 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 this.dataSet11.Tables[0].DefaultView.AllowEdit = false;this.dataSet11.Tables[0].DefaultView.AllowDelete = false;this.dataSet11.Tables[0].DefaultView.AllowNew= false;this.dataGrid1.DataSource = this.dataSet11.Tables[0].DefaultView; DataGrid的数据源为DataView,dataView.AllowEdit = true;DataView.AllowNew = false; C# 下载PDF时直接提示保存下载而不是直接打开 c# excel 导出数据出错 如何实现企业内部点对点的通讯 關於DataGrid中的CheckBox的問題(WinForm) 要释放一个指针,指针指向链表,是不是先要释放指针所指空间呢? 如何高效获取winform中DataGrid中的所选记录(多条记录选择) 菜问题:窗体转换 winform 中resouce.resx文件是否可以存放pdf文件 C#正则匹配出编码问题 关于DataGrid和TableStyle 问一个关于C#数组使用的问题。 oracle游标在.net设计里有什么用?
this.dataSet11.Tables[0].DefaultView.AllowDelete = false;
this.dataSet11.Tables[0].DefaultView.AllowNew= false;
this.dataGrid1.DataSource = this.dataSet11.Tables[0].DefaultView;
dataView.AllowEdit = true;
DataView.AllowNew = false;