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 8961027
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T15:47:33+00:00 2026-06-15T15:47:33+00:00

I have a Grid View where Iam using DateFormatString {0:#,#.##} for one coloumn. If

  • 0

I have a Grid View where Iam using DateFormatString {0:#,#.##} for one coloumn.
If column has value 0 it is not showing any values Could You please help me on this.

Here is my Code

   <asp:BoundField DataField="CummPV" HeaderText="Cumm-PV" SortExpression="cummPV" DataFormatString="{0:#,#.##}" ItemStyle-HorizontalAlign="Right" ItemStyle-VerticalAlign="Bottom" HeaderStyle-HorizontalAlign="Left" HeaderStyle-VerticalAlign="Bottom"/>
            <asp:BoundField DataField="cummEV" HeaderText="Cumm-EV" SortExpression="cummEV" DataFormatString="{0:#,#.##}" ItemStyle-HorizontalAlign="Right" ItemStyle-VerticalAlign="Bottom" HeaderStyle-HorizontalAlign="Left" />
            <asp:BoundField DataField="cummDelay" HeaderText="Cumm-Delay" SortExpression="cummDelay" DataFormatString="{0:#,#.##}" ItemStyle-HorizontalAlign="Right" ItemStyle-VerticalAlign="Bottom" HeaderStyle-HorizontalAlign="Left" HeaderStyle-VerticalAlign="Bottom" />
            <asp:BoundField DataField="SPI1" HeaderText="SPI-1" SortExpression="SPI1" DataFormatString="{0:F3}" ItemStyle-HorizontalAlign="Right" ItemStyle-VerticalAlign="Bottom" HeaderStyle-HorizontalAlign="Left" HeaderStyle-VerticalAlign="Bottom" />
            <asp:BoundField DataField="SPI2" HeaderText="SPI-2" SortExpression="SPI2" DataFormatString="{0:F3}" ItemStyle-HorizontalAlign="Right" ItemStyle-VerticalAlign="Bottom" HeaderStyle-HorizontalAlign="Left" HeaderStyle VerticalAlign="Bottom" />

For CummDelay coloumn it happens.

  • 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-15T15:47:34+00:00Added an answer on June 15, 2026 at 3:47 pm

    Issue us use of # placeholder at first digit place – # does not print the digit (if zero or does not exist). Use 0 instead to force the digit.

    For example, use format string as {0:#,0.##} – this will print 0 for 0 value.

    Another way would be to use 3 section format expression – sections are separated by ; – the first is used for +ve values, second for -ve and last for zero values. That way you can control what exactly you wish to print for zero value. For example, you can use expression such as {0:#,#.##;#;Zero} to print Zero for 0 value.

    See documentation for all details – http://msdn.microsoft.com/en-us/library/0c899ak8.aspx

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

Sidebar

Related Questions

I have grid view with three column name, rate, category I am also using
I have a SharePoint list, which has attachments!! I am using a custom grid-view
I am using vb.net code. I have grid view, please see the code below:
I am using grid view with ImageAdapter to display images. I have two set
I have a data grid view in one windows form named GridViewForm. When the
I have a telerik mvc grid in a Razor view. I am using custom
I have this code I want to bind data to grid view without using
i have a dropdown enabled grid view i am using dropdown for page size
I have a grid, and on detail view I am using a tabstrip, each
I have a grid view. Which contains some columns. Suppose, it has 10 columns

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.