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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T00:59:24+00:00 2026-06-04T00:59:24+00:00

I have a numeric column in a Janus grid. What i want to do

  • 0

I have a numeric column in a Janus grid. What i want to do is display the numbers in it like (1234) if they are less than zero. I have already managed to change the color of such numbers to red, but i need some help with putting braces around the numbers only if they are less than zero.

  • 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-04T00:59:25+00:00Added an answer on June 4, 2026 at 12:59 am

    The trick here is to set the FormatString of the column.

    The FormatString for numerics is in 3 sections, each separated by a semi colon.

    FormatString for numerics are documented here:
    http://msdn.microsoft.com/en-us/library/0c899ak8.aspx

    The section titled ‘The “;” Section Separator’ covers what you need.

    You can set the Format String in the GridEx designer on the column.
    The first section is the format for positive numbers, second section for negative numbers and the third section is for formatting zero.

    You don’t indicate if decimal places are involved in your scenario, but assuming you need 2 decimal places you can use this as a starting point:

    col.FormatString =  "0.00;(0.00);IsZero"
    

    Taking 3 examples with this FormatString:

    1. 7
    2. -13.4
    3. 0

    would give results

    1. 7.00
    2. (13.40)
    3. IsZero
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a numeric column named id in my table. I want to select
I have a table that has a certain numeric column called Score . I
I have a column stored as text, this column is mainly full of numeric
I have 4 numeric up down controls on a form. They are set to
I am trying to convert a character column to numeric and I have tried
I have a string column which contains some numeric fields, but a lot are
I have an nvarchar SQL column which contains mostly numeric values. I'm trying to
I have a table on SQL2000 with a numeric column and I need the
So I have a ExtJs 4 Grid Panel that has two columns. Column ONE
I have a MySQL database with a column of numeric value. When I query

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.