ThousandsSeparator has no effect

2 posts, 1 answers
  1. Jason Parrish
    Jason Parrish avatar
    91 posts
    Member since:
    Sep 2009

    Posted 21 Jun 2011 Link to this post

    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

  2. Answer
    Nikolay avatar
    1805 posts

    Posted 22 Jun 2011 Link to this post

    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,
    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.
Back to Top