Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 2005 > Visual Basic 2005 Basics
|
Visual Basic 2005 Basics If you are new to Visual Basic programming with version 2005, this is the place to start your questions. For questions about the book: Beginning Visual Basic 2005 by Thearon Willis and Bryan Newsome, ISBN: 0-7645-7401-9 please, use this forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Basic 2005 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 30th, 2006, 03:22 PM
Registered User
 
Join Date: Jun 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Format checkbox for datagridview in code

I have a boolean field in an unbound datagridview which is populated at form load.

It is displaying as true or false; however, I want it to display as a checkbox.

I am using this type of terminology to format the date:

With datagridview

    With .Columns("DateTo")
        .HeaderText = "Date To"
        .DefaultCellStyle.Format = "d" 'short date
        .Width = 70
    End With

End With

In vb6, I would do format a checkbox in my grid like this:

        .ValueItems.Presentation = dbgCheckBox

can't find the equivalent command for this vb6 command:

Any help would be appreciated.





Similar Threads
Thread Thread Starter Forum Replies Last Post
DataGridview checkbox isssue noornmd C# 2005 0 August 30th, 2008 04:23 AM
DataGridView Auto Format? MLyons10 C# 2005 0 December 5th, 2006 10:26 AM
checkbox checked by default by html:checkbox sachin.tathod Struts 3 December 4th, 2006 03:41 PM
datagridview currency format rounds off cents TomH VB Databases Basics 2 September 12th, 2006 11:24 AM
Rich Text Format Code zengfu All Other Wrox Books 0 August 19th, 2005 03:03 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.