如何以编程方式访问EntityDataSource中的数据 [英] How to access data in EntityDataSource programmatically

查看:168
本文介绍了如何以编程方式访问EntityDataSource中的数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个EntityDataSource绑定到gridview数据使用的许多过滤器,我想要访问被选择为EntityDataSource的实体,以便能够在xml中导出它们,我该怎么做?

解决方案

您可以通过处理 EntityDataSource c $ c>选择事件并访问结果 EntityDataSourceSelectedEventArgs


I have an EntityDataSource bound to many filters used by gridview data, I want to have access to the entities that was selected be the EntityDataSource to be able to export them in xml for example, how can I do that?

解决方案

You get access to result of query executed in EntityDataSource by handling its Selected event and accessing Results of EntityDataSourceSelectedEventArgs.

这篇关于如何以编程方式访问EntityDataSource中的数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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