S
shapper
Hello,
I created a custom control, Parent, with the following property:
Property Rows As Generic.List(Of Row)
Row is another custom control that creates some code.
The problem is that I want to create different types of rows:
InputRow, CheckRow, ...
All rows render the same way, i.e., a div with content inside it. The
content in the div is different for each row.
Basically I would like to do something like:
Dim MyParent As Parent
MyParent.Rows.Add(MyNormalRow)
MyParent.Rows.Add(MyInputRow)
MyParent.Rows.Add(MyCheckRow)
....
What should be the best way to do this?
Thanks,
Miguel
I created a custom control, Parent, with the following property:
Property Rows As Generic.List(Of Row)
Row is another custom control that creates some code.
The problem is that I want to create different types of rows:
InputRow, CheckRow, ...
All rows render the same way, i.e., a div with content inside it. The
content in the div is different for each row.
Basically I would like to do something like:
Dim MyParent As Parent
MyParent.Rows.Add(MyNormalRow)
MyParent.Rows.Add(MyInputRow)
MyParent.Rows.Add(MyCheckRow)
....
What should be the best way to do this?
Thanks,
Miguel