Custom Dataviews

The following code shows how to create a dataview in code: