M
Marten Engblom
I want to build my own custom control utilizing the DataControlField. What I
can't figure out is how to parse the markup such as:
<MyControls:MyCustomGridView . >
<Columns>
<asp:BoundField DataField="FirstName" HeaderText=" FirstName "
SortExpression=" FirstName " />
<asp:BoundField DataField="LastName" HeaderText=" LastName "
SortExpression=" LastName " />
</Columns>
</MyControls:MyCustomGridView>
into a DataControlFieldCollection? There has to be an already existing
mechanism by which the GridView control etc does this, that I can utilize?
I am suspecting there is a way to do this with the TemplateContainer
attribute, and then use InstantiateIn(), to parse the markup inside the
<Columns> element into a DataControlFieldCollection?
Any ideas?
Thank you in advance,
Marten
can't figure out is how to parse the markup such as:
<MyControls:MyCustomGridView . >
<Columns>
<asp:BoundField DataField="FirstName" HeaderText=" FirstName "
SortExpression=" FirstName " />
<asp:BoundField DataField="LastName" HeaderText=" LastName "
SortExpression=" LastName " />
</Columns>
</MyControls:MyCustomGridView>
into a DataControlFieldCollection? There has to be an already existing
mechanism by which the GridView control etc does this, that I can utilize?
I am suspecting there is a way to do this with the TemplateContainer
attribute, and then use InstantiateIn(), to parse the markup inside the
<Columns> element into a DataControlFieldCollection?
Any ideas?
Thank you in advance,
Marten