Wednesday 21 October 2009

.Net 4 – Enable standard controls for dynamic data

Just seen a new blog post by Scott Hunter today about some of the data enhancements that are coming for .Net 4.0.

The thing that got me excited was at the very bottom of the post where he mentions changes to the way dynamic data can be used.

What you should be able to do is attach dynamic data functionality to a existing control simply by specifying the extension method EnableDynamicData so to add the functionality to a ListView you would just enter:

ListView1.EnableDynamicData(typeofProduct))

This would then provide all the normal dynamic data functionality for that control. Sweet!

No comments:

Post a Comment