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

  • Home
  • SEARCH
  • 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 7883791
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T04:37:43+00:00 2026-06-03T04:37:43+00:00

i bet im not looking well but I cannot seem to find the answer

  • 0

i bet im not looking well but I cannot seem to find the answer to the following question:

i have a Datagrid which will display multiple columns with numbers, some will be above the thousand however i cannot seem to get it to display a decimal separator, I’m saving the numbers as a decimal value but it wont display it.

Thanks for taking the time to look at my question 🙂

Edit: this is about showing it in a datagrid in Windows Forms

  • 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-06-03T04:37:44+00:00Added an answer on June 3, 2026 at 4:37 am

    Try setting the Format property on your DataGridTextBoxColumn. The format you’re after is presumably "N0", which shows the thousands separator but no decimal places.

     DataGridTextBoxColumn textColumn = new DataGridTextBoxColumn();
     textColumn.HeaderText = "My Numbers";
     textColumn.ReadOnly = true;
     textColumn.Format = "N0";
     text
    

    Edit: If you want your numbers to always format consistently, irrespective of the culture of the machine on which the application is run, then you should set the FormatInfo as well.

    The CultureInfo for the computer is used to determine the actual currency format. You can change the CultureInfo for a DataGridTextBoxColumn by setting the FormatInfo property to a new CultureInfo instance constructed with an appropriate culture ID.

    For example, if you’re in Germany and always want the thousands separator to appear as a period (e.g. 12.345.678) rather than a comma (e.g. 12,345,678), use:

     textColumn.FormatInfo = new CultureInfo("de-DE");
    

    You might achieve better consistency by changing the culture for the entire application by setting the Application.CurrentCulture property on startup.

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

Sidebar

Related Questions

I have this table, I bet that looking at the tables, you will know
Simple question for I bet a not so simple answer. Think of a project
I bet somebody has solved this before, but my searches have come up empty.
I bet this is easy but been trying for a while and can't seem
I have a JSlider which shows bet sizes (for a poker game) I am
I'm looking into creating a user friendly setup wizard which does the following: Ask
I have some data that I am not sure how bet to analyze. It
From last 2 weeks I am searching for an answer but not getting a
Warning: This is a not very serious question/discussion that I am posting... but I
I bet this is really obvious but I can't find how to open the

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.