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. Advertising

  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. Advertising

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. mlt
    Replies:
    2
    Views:
    847
    Jean-Marc Bourguet
    Jan 31, 2009
  2. hansiman

    Image in header column (not replacing column header text)

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

    , Jul 13, 2006, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    185
  4. Teej
    Replies:
    2
    Views:
    313
  5. Replies:
    2
    Views:
    246
    jyoti
    Aug 19, 2006
Loading...

Share This Page