Advertisement

03.25.2005 at 12:45PM PST, ID: 21364987
[x]
Attachment Details

How to format decimal figures limiting the # of decimals, place commas or not.  Same for currency.

Asked by JayNichols in Microsoft Visual Basic.Net

Tags: format, decimal

I am loading a datagrid with a decimal field and have chosen a "C" format in my column mapping.  The source field is decimal, scale of 0.  The display gives me $ sign, commas and two decimals.  I went to a format "D" and the same result minus the $ sign.  I think there should be a rather easy way to control the basic numeric display formatting but beyond using "C" or "D" I can't seem to find the answer.  Also, will the answer work for a text box as well?Start Free Trial
[+][-]03.25.2005 at 01:24PM PST, ID: 13633391

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Visual Basic.Net
Tags: format, decimal
Sign Up Now!
Solution Provided By: Lacutah
Participating Experts: 2
Solution Grade: A
 
 
[+][-]03.25.2005 at 01:25PM PST, ID: 13633395

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.25.2005 at 02:01PM PST, ID: 13633597

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.25.2005 at 03:21PM PST, ID: 13634097

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.25.2005 at 03:26PM PST, ID: 13634128

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.29.2005 at 06:16AM PST, ID: 13652417

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32