Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Custom Control?

Status
Not open for further replies.

Peppi

Programmer
Apr 9, 2001
205
CA
Hi,

I need to build a control that's based on the ListView control. I will be using this control multiple times on different pages to display information from different database tables, but in the same format and with the same functionality. So, for example, the DataSourceId and the field names that each data item map to will be different. It is also possible that certain fields will not be applicable for a particular type of data, and so I would need to hide those field(s).

I'm wondering how this is best implemented. Do I need to build a custom control (something I've never done before)? Should I just create a user control with different properties for each field name etc.? I'm looking for the best and/or most object-oriented solution and some resources that I could leverage when building my solution.

Thx.
 
I believe in your case you need to use Custom Control (UserControl would not work for your case).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top