Results 1 to 6 of 6

Thread: Data Grid view and check box column C#

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2014
    Posts
    169

    Data Grid view and check box column C#

    friends;
    how can i add check box column in data grid view wpf to select and unselect all row of data grid view
    and how can i loop this column of check box to know checked and unchecked row by using c#

    the help is very very very appreciated
    good day
    have nice day

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

    Re: Data Grid view and check box column C#

    Are you using WPF or Windows Forms? You say WPF but you also say DataGridView, which is a WinForms control.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Feb 2014
    Posts
    169

    Re: Data Grid view and check box column C#

    Quote Originally Posted by jmcilhinney View Post
    Are you using WPF or Windows Forms? You say WPF but you also say DataGridView, which is a WinForms control.
    thank you for your reply
    i'm using wpf grid view
    thank you

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,297

    Re: Data Grid view and check box column C#

    The MSDN documentation for the GridView class provides a link to an example of adding check boxes so you should already know how to do that because you should always be reading the documentation first.

  5. #5
    Frenzied Member KGComputers's Avatar
    Join Date
    Dec 2005
    Location
    Cebu, PH
    Posts
    2,020

    Re: Data Grid view and check box column C#

    how can i add check box column in data grid view wpf to select and unselect all row of data grid view
    Hi,

    Download the sample application here: WPF DataGrid Check/Uncheck All Functionality and follow the steps to run the application.

    CodeBank: VB.NET & C#.NET | ASP.NET
    Programming: C# | VB.NET
    Blogs: Personal | Programming
    Projects: GitHub | jsFiddle
    ___________________________________________________________________________________

    Rating someone's post is a way of saying Thanks...

  6. #6
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,297

    Re: Data Grid view and check box column C#

    Quote Originally Posted by KGComputers View Post
    Hi,

    Download the sample application here: WPF DataGrid Check/Uncheck All Functionality and follow the steps to run the application.

    That's a DataGrid rather than a ListView/GridView though. I'm not sure how significant the changes would be but there would presumably be some.

    I think I misread the first post, or at least forgot what it actually said when coming back to the thread later. I thought it was about adding check boxes, rather than checking all the ones that were already there. My apologies for that.

Tags for this Thread

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