|
-
Jan 13th, 2011, 01:26 AM
#1
Thread Starter
PowerPoster
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
-
Jan 13th, 2011, 10:25 PM
#2
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
-
Jan 18th, 2011, 08:41 AM
#3
Thread Starter
PowerPoster
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.
-
Jan 18th, 2011, 08:44 AM
#4
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|