如何在手动绑定的DataGridView中编辑单元格内容 [英] How to edit cell content In DataGridView that Bind Manualy

查看:72
本文介绍了如何在手动绑定的DataGridView中编辑单元格内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个绑定到列表< t>的datagridview.以编程方式.
<pre>List <T> lst = ... </pre>

datagridview.datasource= lst;
现在我要用户可以编辑单元格内容.
Plaese帮助我

I Have a datagridview that bind to a list<t> programically.
<pre>List <T> lst = ... </pre>

datagridview.datasource= lst;
Now I want to user can edit cell content.
Plaese help me

推荐答案

您已创建BoundField列.对吧?
将编辑,更新,取消CommandField"列添加到GridView.
我希望这有帮助. :thumbsup:
You have created BoundField Columns. Right?
Add an Edit,Update,Cancel CommandField column to the GridView.
I hope this helps. :thumbsup:


我将Columns添加到设计器中.并设置DataField属性.
我的项目是win,在Windows中如何添加CommandField?
I add Columns to designer. and set DataField property.
My Project is win , in windows how to add CommandField?


这篇关于如何在手动绑定的DataGridView中编辑单元格内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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