How do I expose the columns collection of GridView control that is inside a user control
- by Christopher Edwards
See edit.
I want to be able to do this in the aspx that consumes the user control.
<uc:MyControl ID="MyGrid" runat="server">
<asp:BoundField DataField="FirstColumn" HeaderText="FirstColumn" />
<asp:BoundField DataField="SecondColumn" HeaderText="SecondColumn" />
</uc>
I have this code (which doesn't work). Any…