Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

ASPxDataView - How to assign the ItemTemplate property at runtime

$
0
0

This example demonstrates how the ASPxDataView's template of the ItemTemplate type can be created dynamically. The template is represented by a UserControl that contains a panel with several controls.
To assign the ASPxDataView's ItemTemplate property via code, a specific class (MyItemTemplate) that realizes the ITemplate interface is implemented. Within the InstantiateIn method of this class, the UserControl's content is loaded into the template container by using the LoadControl method.


Viewing all articles
Browse latest Browse all 7205


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>