从DataGridView下载选定的行 [英] download a selected row from DataGridView

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

问题描述

我有这个窗口形式,在其中我有datagridview显示数据库中的表中的记录,它工作正常,但我无法弄清楚如何允许用户从datagridview下载选定的行。 />
非常感谢任何帮助。



每行包含5列。第一列包含其他表的ID号,第二列包含一个附件。第三列到第五列包含不相关的日期,是的,您已正确读取并且附件作为blob存储在数据库中,我只是希望能够选择一个图像并将其下载到我的硬盘上。我该怎么做呢?

I have this windows form and in it i have datagridview that displays the records from a table in a database and it works just fine but I cant figure out how to allow the user to download a selected row from the datagridview.
Any help is greatly appreciated.

Each row consists of 5 columns. Column one contains the id number of other table and column two contains an attachment.the columns three to five contains dates irrelevant,Yes you've read correctly and an attachment is being stored in the database as blob,I just want to be able to select an image and download it onto my hard drive. How do i go about doing this?

推荐答案

参考 - 从DataGridView单元格上传和下载文件 [ ^ ]。


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

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