Click here to Skip to main content
12,453,873 members (79,728 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: VB VB.NET
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 17:23pm
Comments
JemiM 30-Jan-13 0:07am
   
Please post what you have tried

1 solution

Rate this: bad
 
good
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 Smile | :)
  Permalink  

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 | Mobile
Web02 | 2.8.160826.1 | Last Updated 30 Jan 2013
Copyright © CodeProject, 1999-2016
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