Click here to Skip to main content
13,260,018 members (48,752 online)
Rate this:
Please Sign up or sign in to vote.
See more:
How to set datagrid checkbox to checkstate.checked? I have a mysql data which I want is to query if the user is admin (db column) so it would appear on the data grid as checked.

Thanks in advance.
Posted 29-Jan-13 18:23pm
JemiM 30-Jan-13 0:07am
Please post what you have tried

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Find code below:

I m giving u only sample for updating single checkbox column to checked state.
For multiple row checkbox updation you cn use for loop.

DataGridView1.Rows[0].Cells["CheckboxColumnName"].Value = true;

hope it helps u
ENjoy :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.171114.1 | Last Updated 30 Jan 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100