Button in column header

Discussion in 'ASP .Net Datagrid Control' started by Mark Schubert, Nov 20, 2003.

  1. I want to put a button in a column header. How do I handle the event when
    the button is clicked?
     
    Mark Schubert, Nov 20, 2003
    #1
    1. Advertisements

  2. Mark Schubert

    Alvin Bruney Guest

    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: www.networkip.net/tidbits
    "Mark Schubert" <> wrote in message
    news:...
    > I want to put a button in a column header. How do I handle the event when
    > the button is clicked?
    >
    >
     
    Alvin Bruney, Nov 21, 2003
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. carlos perez
    Replies:
    0
    Views:
    561
    carlos perez
    Jun 8, 2004
  2. =?Utf-8?B?V2FyYW4=?=

    HyperLink Column and Button Column in a DataGrid

    =?Utf-8?B?V2FyYW4=?=, Aug 9, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    754
    =?Utf-8?B?V2FyYW4=?=
    Aug 9, 2005
  3. mlt
    Replies:
    2
    Views:
    1,137
    Jean-Marc Bourguet
    Jan 31, 2009
  4. hansiman

    Image in header column (not replacing column header text)

    hansiman, Feb 5, 2004, in forum: ASP .Net Datagrid Control
    Replies:
    3
    Views:
    496
    hansiman
    Feb 7, 2004
  5. datagrid having row header and column header

    , Jul 13, 2006, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    292
  6. Teej
    Replies:
    2
    Views:
    511
  7. Replies:
    2
    Views:
    376
    jyoti
    Aug 19, 2006
  8. Paul Shapiro
    Replies:
    9
    Views:
    326
    James Gray
    Jun 23, 2009
Loading...