用了DataGridView,给每行每列赋了值可是最小化界面后再打开,列的值变为初值了,或者有的没有显示了什么情况,在哪儿改啊?DataGridView
解决方案 »
- 求生成唯一ID号的一个算法!
- 比如现在有字符串 "20081225"加上六个月后值。要怎么求。在线等
- java 中 MessageDigest.digest (bytes[]) 用 C#实现怎么弄啊
- msmq 如何设置超时时间?
- 到哪里去找.NET相关的控件?
- C#编写查询系统服务工具
- 怎样禁止winform让它不能进行拉大缩小?
- 谁有条形码的国家标准,这个网址无法下载了
- 为什么windows application的窗口总是闪烁?
- 无法在对象浏览器中查看此项目,因为此项目不可用或者尚未生成。请确保此项目可用并且已生成
- 100分送上!急!字符串中去除不想要的字符!
- C# System.Timer.timer,定时器已关闭,通过定时器启动的线程如何关闭?
A. bindingSource 用 EndEdit(), 将值真正传到 DataSet。
B. 加上这个事件:
private void bindingSource_BindingComplete(object sender, BindingCompleteEventArgs e)
{
if (e.BindingCompleteContext == BindingCompleteContext.DataSourceUpdate && e.Exception == null)
// If not, end the current edit.
e.Binding.BindingManagerBase.EndCurrentEdit();
}