Results 1 to 4 of 4

Thread: How should I do this (Add ModalPopup to Gridview Custom Control)

  1. #1

    Thread Starter
    PowerPoster Nitesh's Avatar
    Join Date
    Mar 2007
    Location
    Death Valley
    Posts
    2,556

    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

  2. #2
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    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

  3. #3

    Thread Starter
    PowerPoster Nitesh's Avatar
    Join Date
    Mar 2007
    Location
    Death Valley
    Posts
    2,556

    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.

  4. #4
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    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
  •  



Click Here to Expand Forum to Full Width