Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: User Controls and inheritance


Message #1 by Imar@S... on Fri, 16 Aug 2002 11:31:20
Hi there,

I have a user control that defines a datagrid. In the code behind I have 
implemented some general behaviour like paging, sorting, deleting etc.

How do I allow the aspx page that uses this User Control to define the 
columns? Right now I have either AutoGenerateColumns set to true (in the 
ASCX page), or defined the columns in the ASCX file myself.

But what I would like is that the page designer is able to define the 
columns in the ASPX page, while the User Control takes care of all the 
data related stuff.

Any ideas on this??

TIA.

Imar

  Return to Index