SavedQueryDataSource data source control connects to Dynamics CRM and retrieve savedquery entity, convert its fetchxml to QueryExpression, retrieve entities by using IOrganizationService.RetrieveMultiple(QueryExpression) and make these entities available for other controls to bind to, without requiring code. It only supports retrieving data.
It only works with savedquery NOT userquery. Savedquery is available to the entire organization and created using customization; userquery belongs to individual users and created using advanced find user interface.
<
crm:SavedQueryDataSource
ID
=
"SavedQueryDataSource1"
runat
=
"server"
SavedQueryName
=
"Active WebPages"
>
</
crm:SavedQueryDataSource
>
<
asp:GridView
ID
=
"GridView1"
runat
=
"server"
DataSourceID
=
"SavedQueryDataSource1"
>
</
asp:GridView
>