从datagridview中选择一行并保存文件 [英] Selecting a row from the datagridview and saving the file

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

问题描述



可以从datagridview中选择一行并通过单击同一行中提供的链接打开保存文件对话框来保存它吗?
以下是我的datagridv的外观:-
ID -----日期-------------动作-----计数------状态
1 --- 27/11/2012 -------编号----- 3 ----- 保存到文件

此数据存储在List< ainfo>中.

Hi,

Is is possible to select a row from the datagridview and save it by opening a save file dialog on click of a link provided in the same row??
Heres how my datagridv looks:-
ID-----Date-------------Action-----Count------Status
1---27/11/2012-------Numbering-----3-----Save to File

This data is stored in a List<ainfo>.

推荐答案

是的,可以单击同一行中提供的链接来选择行和对话框.
通过使用事件"中的网格视图命令SelectedIndexChanged.

使用此链接填充对话框.
通过AJAX对父页面进行部分更新(关闭子窗口的ASP.NET 2.0)-有条件 [
yes it is possible to select row and dialog on click of a link provided in the same row.
By using grid view command SelectedIndexChanged from Events.

use this link for populating dialog box.
Partial update of parent page via AJAX (ASP.NET 2.0) on close of a child window - conditionally[^]


这篇关于从datagridview中选择一行并保存文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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