How to start with implementing an UserControl based on TypedViewRow

Posts   
 
    
magic
User
Posts: 125
Joined: 24-Nov-2008
# Posted on: 26-Nov-2009 19:25:23   

Hi,

I have the following concept in my mind: I want to create base functionality for UserControls so that I can extend the base clase and quickly create user controls which display data of a single TypedViewRow (DetailViews are really boring in terms of design possibilities). So the UserControl should be a generic class configured by a given TypedView. It will take care about data binding, etc.

At the end I just have to extend the base class and provide it the values for requested parameters (e.g. Person.Id = 123) and an .aspx front end that will be able to align place holders in an arbitrary fashion (design-wise, not a "boring" GridViewRow/Detailsview). The base class, will fetch the data so that the values of the given properties can be assigned when the UserControl is generated/rendered.

I hope, I confused everybody enough wink and somebody can tell me how to start implementing this. I looked into the help, but I can't find anything that would target the topic better than "Generated code - Databinding with ASP.NET 2.0, Adapter". Is there anything that would be of better help?

Thanks.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39863
Joined: 17-Aug-2003
# Posted on: 27-Nov-2009 10:37:27   

Isn't there something available in visual studio? Like with the datasources window? (which allows you to define which controls to generate based on a class) ?

Frans Bouma | Lead developer LLBLGen Pro