Results 1 to 20 of 20

Thread: [RESOLVED] After sorting DataGridView lose checks in CheckBox Column

Hybrid View

  1. #1
    PowerPoster dunfiddlin's Avatar
    Join Date
    Jun 2012
    Posts
    8,245

    Re: After sorting DataGridView lose checks in CheckBox Column

    What are the checkboxes there for? If they are row specific then you need to include them, if not in the database, at least in the relevant datatable in your program. If you add a Boolean column to the table after it is filled, you can use that to keep a record of checked and unchecked which will then be retained in the DGV sort.
    As the 6-dimensional mathematics professor said to the brain surgeon, "It ain't Rocket Science!"

    Reviews: "dunfiddlin likes his DataTables" - jmcilhinney

    Please be aware that whilst I will read private messages (one day!) I am unlikely to reply to anything that does not contain offers of cash, fame or marriage!

  2. #2

    Thread Starter
    Hyperactive Member squatman's Avatar
    Join Date
    May 2012
    Location
    UK
    Posts
    337

    Re: After sorting DataGridView lose checks in CheckBox Column

    Thanks for the reply dunfiddlin.

    The check box column will be used just to select individual rows, rather than selecting them with Ctrl/Shift.
    I will then want to refer to the rows that are checked and grab information from them.

    Which method do you think would be best for achieving this..?

    Thanks again.

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