Go Back  Xtreme Visual Basic Talk > Visual Basic .NET (2002/2003/2005/2008, including Express editions) > .NET General > No checkbox in DGV


Reply
 
Thread Tools Display Modes
  #1  
Old 06-29-2012, 03:11 AM
PeetSoft's Avatar
PeetSoft PeetSoft is offline
Centurion
 
Join Date: Jun 2003
Location: HHW - the Netherlands
Posts: 161
Default No checkbox in DGV


I,m having an unbound DGV with several checkboxcolums defined as

Code:
Dim Col1 As New DataGridViewCheckBoxColumn(False)

If I put boolean data to i.e. rows(1).cells(1) it giving me true or false instead of a graphical checkbox.

Google isn't my friend on this subject :-(
__________________
-----------------------------------------------------
If debugging is the art of removing bugs, then
programming must be the art of inserting them.
----------------------------------------------------- I do comply with Flyguy's signature
Reply With Quote
  #2  
Old 06-29-2012, 08:23 AM
Gruff's Avatar
Gruff Gruff is offline
Bald Mountain Survivor

Super Moderator
* Expert *
 
Join Date: Aug 2003
Location: Oregon, USA
Posts: 5,882
Default

Using the Columns Property at design time creare a column and set its designstyle property to checkbox. Thereafter cells in that column with a value of true/false will display a checkbox.
__________________
Burn the land and boil the sea
You can't take the sky from me


~T
Reply With Quote
Reply

Tags
boolean, checkbox, datagridview


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->