为什么新行禁用了编辑模式? [英] why the new row disabled the editing Mode?

查看:80
本文介绍了为什么新行禁用了编辑模式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的项目中,当从数据库中填充数据时,我正在使用DataGridView,并对DataGridView进行了一些操作.现在,我无法编辑NEW ROW,请问任何人可以解释为什么会这样吗?

In my project I am using DataGridView when populate the data from the database, And done some manipulation on the DataGridView. Now I Unable to edit the NEW ROW, Please can any one explain why this so?

推荐答案

感谢您的关注,我写了一条语句清除了datagridview行,禁用了编辑单元格的操作.
thanks for your Interest, I had wrote a statement clearing the datagridview rows which disabled the editing the cell.
dataGridView.Rows.Clear();<code><br />
later i had removed this line of code and assigned the empty datatable to the datagridview.


这篇关于为什么新行禁用了编辑模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆