Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6948367
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:48:49+00:00 2026-05-27T13:48:49+00:00

I will start by saying that I am completely new to WPF. I am

  • 0

I will start by saying that I am completely new to WPF. I am trying to learn and diagnose an existing application and I had a question I was hoping someone could answer.

I noticed when a user enters a percentage, it requires the user to enter a decimal value (which makes sense), but then it displays it as a percentage like if the user enters .50 it is displayed in the cell as “50%” (after leaving the cell of course). The reason it behaves this way is obvious to me, because the format is set to “{0:P}”.

I wanted to allow the users to enter “50 %” so I created a converter (that for instance converts “50 %” to .5 and it works great).

What puzzles me is why isn’t a converter needed for the currency fields (Format = “{0:C}”)? I am surprised that the DataGrid allows the user to enter dollar signs, commas, etc and then coverts them to a decimal (money type in SQL).

Is there some automagic stuff going on with the Currency Format (or some other property that I just haven’t found in the code yet) or is there a Converter somewhere that I haven’t discovered?

How is this working and if it is some automagic stuff, why isn’t percentages handled automagically in a similar manner?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T13:48:50+00:00Added an answer on May 27, 2026 at 1:48 pm

    I just ran across this issue. Since no one has provided an answer in 9 months, I’m going to give my best guess. There appears to be a built in currency converter (see this answer) and I suspect somehow the FormatString for currency uses this built-in converter behind the scenes. The built in ZoomPercentageConverter doesn’t appear to do what’s needed so I’m guessing the P StringFormat is just dumber, too bad.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I will start by saying that I am completely new to WPF. But, I
Ok, so I will start by saying that I am new to all this
Let me start off by saying that I am very new to WPF and
Ok I will start by saying I'm fairly new to programing android applications. That
I will start by saying that I don't think what I want can be
I'm trying to create a bookmarklet that will start off an AJAX call to
I'm going to start this off by saying that I am new to GLSL
I will start by saying that I am a college student with little c++
I will start out by saying there is a question similar to mine: heroku
I will start new PDA project on the windows mobile and compact framework 2.0

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.