Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To 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 December 28th, 2005, 02:32 AM
Authorized User
 
Join Date: Nov 2005
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Default Boolean True/False to Yes/No

Hi all,
     I'm trying to format a Visual Basic 2003 datagrid for a windows app not asp. this is my format.

     column = New DataGridTextBoxColumn
     column.MappingName = "Paid"
     column.HeaderText = "Paid"
     column.Width = 65
     TableStyle.GridColumnStyles.Add(column)

This works perfect.

With my cost column I add the following line so the datagrid know it's a currency column.

     column.Format = "c"

Is there a line like the one above for boolean so that my Paid column reads Yes or No instead of True or False.

I have also tried column.Format = "Yes/No" but this does not work either.

Thanks

Pete*
__________________
Simplicity is the key
 
Old January 21st, 2006, 12:05 AM
Registered User
 
Join Date: Jan 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Pete,

I don't have the answer, I have the same problem! Did you figure it out yet? If so, please post. I will do the same. Thanks!

Jay

 
Old February 6th, 2006, 07:58 PM
Authorized User
 
Join Date: Nov 2005
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Default

No I havn't figured it out. I will get back to it soon.

Thanks

Pete*






Similar Threads
Thread Thread Starter Forum Replies Last Post
Is 9:00 > 08:30 true or false? cJeffreywang ASP.NET 2.0 Basics 5 February 3rd, 2008 12:16 AM
boolean value shows true and false in the datagrid debjanib ASP.NET 2.0 Basics 2 March 23rd, 2007 08:38 AM
XSLT - test the value is true or false haixia XSLT 1 August 21st, 2006 01:38 PM
boolean starlightt Java Basics 2 April 6th, 2006 05:34 PM
Yes/No in DB showing True/False in ASP query miller2000 Classic ASP Databases 2 June 17th, 2004 10:36 AM





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