views:

82

answers:

1

ASP.Net 3.5

I want to create a user control that contains the ListView and DataPager controls along with some custom code in the ItemDataBound that is generic and deals with UI styling.

Ideally, when the developer uses this control, I would like to retain editor support so they can select a datasource, add/remove columns, etc...

Is this easy? If so, any references on how to do this?

If it is not possible, what alternatives are there?

The reason I am trying to create the user control is to make it easier on the developers to retain the ui look and feel and to encapsulate common UI styling code.

A: 

You'll need to use the Facade pattern to delegate the exposed designer properties to the composed inner controls.

In my opinion it's honestly not worth the effort it would take to wire up nicely.

FlySwat
Do you think using an extender control may help?