Button in column header

Ask a Question related to ASP.NET Data Grid Control, Design and Development.

  1. #1

    Default Button in column header

    I want to put a button in a column header. How do I handle the event when
    the button is clicked?


    Mark Schubert Guest

  2. Similar Questions and Discussions

    1. Opening a new window with a link button button column on a datagrid
      Hi all, I have a datagrid with a button column set as a link button. When clicked I want it to open a new window in which to display the results...
    2. Column Header
      I have a web form with a datagrid. The datagrid has 5 columns. In design mode each column has header text. I defined the header text, data source,...
    3. Image in header column (not replacing column header text)
      I have a sortable (asc/desc) datagrid and would like to add a small arrow icon (down/up) next to the column header text to improve the UI. Is this...
    4. DataGrid Column Header
      Hi All, The column header is getting an underline once the sort is enabled on that particular column. I want to have it in such a way that the...
    5. Template Column with button in header
      Hi, usually Button clicks inside DataGrid are managed by handling ItemCommand event of the grid. Button is given a CommandName that is checked in...
  3. #2

    Default Re: Button in column header

    you can either hook the event up to a handler manually
    button1.click += new function goes here

    or you can set the button id, and handle the itemcommand event and filter
    for this unique id.
    if e.item.commandname == "unique button name"
    do something

    roughly

    regards

    --


    -----------
    Got TidBits?
    Get it here: [url]www.networkip.net/tidbits[/url]
    "Mark Schubert" <mark@schubert.com> wrote in message
    news:uCnRJM6rDHA.3536@tk2msftngp13.phx.gbl...
    > I want to put a button in a column header. How do I handle the event when
    > the button is clicked?
    >
    >

    Alvin Bruney Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139