如何从datagridview中选择一行并将其发送到ftp服务器 [英] How do I select one row from datagridview and send them to ftp server
本文介绍了如何从datagridview中选择一行并将其发送到ftp服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我开发了一个带有c#的程序,它将数据发送到一个表中,并在datagridview中显示数据,现在我需要选择该datagridview的一行,选择DataGridView的行并用它创建一个文件,最后发送它到FTP服务器。那可能吗?如果是这样我该怎么办?
如果您需要任何代码或我程序的任何截图,请随时询问。
我尝试了什么:
我在google上搜索但没有找到任何结论
I have developed a program with c# that sends data into a table and shows that data in a datagridview and now I need to select one row of that datagridview select the row of the DataGridView and create a file with it and finally send it to the FTP server. Is that possible? If so how can I do it?
If you need any code or any screenshot of my program feel free to ask.
What I have tried:
I did a search on google but didnt find anything conclusive
推荐答案
我将引用您的DataGridView文档, [ ^ ]
注意它具有Item属性,以便您可以访问特定单元格。另外请注意,通过单击文档,您也可以获取单元格集合, DataGridViewRow.Cells属性(System.Windows.Forms) [ ^ ]。
I'll refer you to the documentation for the DataGridView, [^]
Notice it has Item properties so that you can get access to a specific cell. Also notice by clicking through the documentation that you can get the cells collection as well, DataGridViewRow.Cells Property (System.Windows.Forms)[^].
这篇关于如何从datagridview中选择一行并将其发送到ftp服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文