如何在不使用数据库连接的情况下将文本框值存储在datagrid视图中 [英] how store the textbox values in datagrid view with out using database connection

查看:57
本文介绍了如何在不使用数据库连接的情况下将文本框值存储在datagrid视图中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在没有数据库连接的情况下将文本框值存储在datagridview中?

How do you store the textbox values in a datagridview without a database connection?

推荐答案

datagridview是显示容器,不存储值(内存中除外) ).

如果您想存储/保留数据,则需要将其保存到数据库(您不想这样做)或将其保存在文本文件中.

有一篇有关使用CSV的CodeProject文章:用于将数据导出到CSV/Excel文件的C#类库 [ ^ ]

希望这有助于您入门.

干杯.
The datagridview is a display container and does not store values (except in memory).

If you want to store/persist the data, you''re going to need to either save to a database (which you''re saying you don''t want to do) or perhaps save it in a text file.

There is a CodeProject article on using CSV: C# class library for exporting data to CSV/Excel file[^]

Hope this helps to get you started.

Cheers.


这篇关于如何在不使用数据库连接的情况下将文本框值存储在datagrid视图中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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