GridView - Accessing Values on Click of CheckBox Column

Discussion in 'ASP .Net' started by Adotek, May 29, 2007.

  1. Adotek

    Adotek Guest

    Hi All,

    Can anyone advise how to access the values of a row in a datagrid,
    when a checkbox is is checked/unchecked?

    I want to run a function that will do somethign with the ID of the row
    when the check box is changed.

    Any help will be much appreciated.

    Thank you,

    Simon.
    Adotek, May 29, 2007
    #1
    1. Advertising

  2. Adotek

    David Wier Guest

    See if this helps:
    http://www.aspnet101.com/aspnet101/aspnet/codesample.aspx?code=GridViewCheck

    --
    David Wier
    MVP/ASPInsider
    http://aspnet101.com
    http://iWritePro.com



    "Adotek" <> wrote in message
    news:...
    > Hi All,
    >
    > Can anyone advise how to access the values of a row in a datagrid,
    > when a checkbox is is checked/unchecked?
    >
    > I want to run a function that will do somethign with the ID of the row
    > when the check box is changed.
    >
    > Any help will be much appreciated.
    >
    > Thank you,
    >
    > Simon.
    >
    David Wier, May 29, 2007
    #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. Keith G Hicks
    Replies:
    3
    Views:
    754
    Keith G Hicks
    Feb 18, 2008
  2. Robert Smith
    Replies:
    3
    Views:
    3,984
    Mohamad Elarabi [MCPD]
    Mar 8, 2008
  3. David Flynn

    Checkbox values reverting to false on button click

    David Flynn, Jul 4, 2003, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    178
    David Flynn
    Jul 4, 2003
  4. Gregory Rampton

    Convert an MS Access Yes/No column to a checkbox column in C# datagrid

    Gregory Rampton, Aug 6, 2003, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    190
    Gregory Rampton
    Aug 6, 2003
  5. Rock

    Null values in a datagrid checkbox column

    Rock, Dec 2, 2004, in forum: ASP .Net Datagrid Control
    Replies:
    1
    Views:
    225
    Ken Cox [Microsoft MVP]
    Dec 3, 2004
Loading...

Share This Page