Render dynamic column with thousand separator

Render dynamic column with thousand separator

bczm8703bczm8703 Posts: 16Questions: 5Answers: 0

I have a few columns using which are dynamically created at runtime using the asp grid view. I am wondering how do i render the integer columns with thousand separator.

Would like to also check if these columns after rendering the thousand separator or negative numbers will it affect the sorting causing the value to be treated as string?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,234Questions: 1Answers: 10,417 Site admin
    Answer ✓

    Use the built in number rendering helper.

    Would like to also check if these columns after rendering the thousand separator or negative numbers will it affect the sorting causing the value to be treated as string?

    No - a negative will still string sort (unless you use () a la accounting to indicate a negative number, in which case you'd need a plug-in).

    Allan

Sign In or Register to comment.