Generic ascx controls with properties

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

H
I want to make an ascx control with a DataGrid on it and make its bindings generic by using an ascx control, is there any way I can give each ascx control its own 'properties', like I want to make each instance of it a different forecolor, and I also want to give each one a different dataset (although the column specifications will be identical.)
 
On the control, just set up public Get/Set properties for the DataSet and the colors. When the control is placed on the page, just set those property values from the page. When the page is run, the colors/dataset should run correctly.
 
Back
Top