Results 1 to 6 of 6

Thread: [02/03] Add checkbox column to a DataGrid

  1. #1

    Thread Starter
    Fanatic Member Valleysboy1978's Avatar
    Join Date
    Nov 2004
    Location
    Planet Xeoroaniar CC Posts:1,928,453,459,361
    Posts
    770

    [02/03] Add checkbox column to a DataGrid

    Morning all!

    I have a DataGrid where I want to add a checkbox to each row. Is this possible? And if so how do I do this?

    Thanks ppl
    Life is one big rock tune

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [02/03] Add checkbox column to a DataGrid

    Follow the WinForms FAQ link in my signature. It has the best accumulation of information around regarding the DataGrid, amongst other things.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Fanatic Member Valleysboy1978's Avatar
    Join Date
    Nov 2004
    Location
    Planet Xeoroaniar CC Posts:1,928,453,459,361
    Posts
    770

    Re: [02/03] Add checkbox column to a DataGrid

    Thanks, does this also apply to Web Form DataGrids?
    Life is one big rock tune

  4. #4

    Thread Starter
    Fanatic Member Valleysboy1978's Avatar
    Join Date
    Nov 2004
    Location
    Planet Xeoroaniar CC Posts:1,928,453,459,361
    Posts
    770

    Re: [02/03] Add checkbox column to a DataGrid

    Never mind, just had a look at your sample code and noticed it was asp. Will try it, thanks
    Life is one big rock tune

  5. #5
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [02/03] Add checkbox column to a DataGrid

    No it doesn't. As there's an ASP.NET forum if you're going to post WebForms questions in the VB.NET forum it's best to specify so. Most people will assume WinForms by default. There is a corresponding WebForms FAQ link in my signature as well. It has a section on the WebForms DataGrid that I believe answers your question.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  6. #6

    Thread Starter
    Fanatic Member Valleysboy1978's Avatar
    Join Date
    Nov 2004
    Location
    Planet Xeoroaniar CC Posts:1,928,453,459,361
    Posts
    770

    Re: [02/03] Add checkbox column to a DataGrid

    Cheers
    Life is one big rock tune

Posting Permissions

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



Click Here to Expand Forum to Full Width