从DataGridView到Datatable [英] DataGridView to Datatable

查看:112
本文介绍了从DataGridView到Datatable的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要DataTable的DataGridView中的所有行和列.如何用最少的代码实现这一目标.
请让我知道.

thax ..

I want all the rows and column in my DataGridView in DataTable. how can i achieve this with minimum code.
Plz let me know.

thax..

推荐答案

如何填充DataGridView?
如果您希望用户填写一些值,请使用一个空的DataTable填充它,并且DataGridView将在用户输入数据时对其进行更新.
How are you populating your DataGridView?
If you are expecting the user to fill in some values populate it with an empty DataTable and the DataGridView will update it as the user enters the data.


这篇关于从DataGridView到Datatable的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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