locked
Buttons for Custom Gridview RRS feed

  • Question

  • User503704278 posted

    Hi All,

    I want to show some buttons at the top of my custom GridView (basically to export data to excel and printing the grid data).  Can you please suggest how to go about it.

    Thanks and Regards,

    crbherde

     

    Tuesday, April 29, 2008 1:59 AM

Answers

  • User503704278 posted

    Thanks. I have overridden CreateChildControls method to add the buttons.

    Protected Overrides Function CreateChildControls(ByVal dataSource As System.Collections.IEnumerable, ByVal dataBinding As Boolean) As Integer

     Regards,

    crbherde

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, April 30, 2008 1:15 AM

All replies

  • User371668647 posted

    Would it be too obvious to suggest two buttons with click handlers?  Otherwise, is you custom GridView a user control or a server control?  (As the technique for adding the buttons and handling their clicks will be slightly different.)

    Tuesday, April 29, 2008 3:11 PM
  • User503704278 posted

    Thanks. I have overridden CreateChildControls method to add the buttons.

    Protected Overrides Function CreateChildControls(ByVal dataSource As System.Collections.IEnumerable, ByVal dataBinding As Boolean) As Integer

     Regards,

    crbherde

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, April 30, 2008 1:15 AM