回发后如何获取Gridview数据源 [英] How to get Gridview datasource after post back
本文介绍了回发后如何获取Gridview数据源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
任何机构都可以告诉我如何在发回邮件后获取gridveiw数据源
提前发送
Hi all,
can any body tell me how can I get the gridveiw datasource after post back
tx in advance
推荐答案
@ Code_Seeker
为什么不使用sesison变量.
Hi @Code_Seeker
why don''t you use the sesison variable.
gridview1.datasource=datatable;
gridview1.databind();
session["storedatatable"]=datatable;
可以在回发控制之后存储数据的功能
希望对您有帮助
谢谢
that can have the ability to store the data after the post back control
Hope it will help you
Thanks
您好,
试试这个很容易.
Hi ,
it''s easy just try this one .
protected void Button1_Click(object sender, EventArgs e)
{
DataTable dty =(DataTable) GridView1.DataSource;
}
最好的问候
米特瓦里(M.Mitwalli)
Best Regards
M.Mitwalli
这篇关于回发后如何获取Gridview数据源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文