• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 286
  • Last Modified:

DataGridView Int Column Displays Comma's?

Moving question from SQL to here:

http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/Q_22715829.html?cid=239#a19553896

Q. Why do I have comma's in my DataGrid but not in SQL Querry Analyzer.

I would like to eliminate them if possible.
0
kvnsdr
Asked:
kvnsdr
1 Solution
 
Bob LearnedCommented:
Did you set the display format for the column?  You can specify {0:N0} for numbers to display with commas.  You can also specify the fixed format {0:F0}.

Bob
0
 
kvnsdrAuthor Commented:
Here's what I came up with, thanks for the advice.

dataGridView1.Columns["Number"].DefaultCellStyle.Format = "0";
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now