How should I do this (Add ModalPopup to Gridview Custom Control)
Hi Guys,
I have a Gridview Custom Control (class library project). What I want to do is, add a button to the page. Once the button is clicked, I need a ModalPopupEctender to come up with a checkboxlist of all the Columns in the SQLDataSource that populates the Gridview.
Now since this is a class library project that inherits from the Gridview, I'm not sure how I can add a div at the very top of the page, with the "Choose Columns" button.
Should I create a user control that contains my Custom Gridview? Reason I want to do what I ask is because I want to reuse this in as many projects as I can, I wan this functionality built in to my dll. please help
Re: How should I do this (Add ModalPopup to Gridview Custom Control)
Hey,
A UserControl is certainly a valid approach. It is also possible to put the ascx (if that is the route that you go down) into the DLL, or you can create your own server control.
Gary
Re: How should I do this (Add ModalPopup to Gridview Custom Control)
hey Gary,
I haven't had time to get back to this. Having the usercontrol in my custom gridview class library project sounds good. Not sure where to start though. Hopefully I have time to try soon. :wave:
Re: How should I do this (Add ModalPopup to Gridview Custom Control)
Hey,
Not a problem, keep me posted, and let me know if there is anything I can help you with.
Gary