This is a migrated thread and some comments may be shown as answers.

ThousandsSeparator has no effect

1 Answer 15 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jason Parrish
Top achievements
Rank 1
Jason Parrish asked on 21 Jun 2011, 05:58 PM
I have tried setting the ThousandsSeparator both in the Property Builder and in code, but it has no effect on the display of the grid's numbers.  I am referencing GridView v2011.1.11.315.

Is this a known issue or am I missing something? 

Private Sub gridIssues_DataBindingComplete(sender As Object, e As Telerik.WinControls.UI.GridViewBindingCompleteEventArgs) Handles gridIssues.DataBindingComplete
      CType(gridIssues.Columns("balance"), GridViewDecimalColumn).ThousandsSeparator = True
End Sub




1 Answer, 1 is accepted

Sort by
0
Accepted
Nikolay
Telerik team
answered on 22 Jun 2011, 02:07 PM
Hi Jason,

Thank you for your question.

The ThousandsSeparator property determines the behavior of the default editor that GridViewDecimalColumn displays. However, this property has no effect on the text of the cells. If you need to format the text of the cells, you can use the FormatString property:
CType(Me.radGridView1.Columns(0), GridViewDecimalColumn).FormatString = "{0:N}"

I hope this helps.

Kind regards,
Nikolay
the Telerik team
Q1’11 SP1 of RadControls for WinForms is available for download; also available is the Q2'11 Roadmap for Telerik Windows Forms controls.
Tags
GridView
Asked by
Jason Parrish
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or