Radgridview cell value format change to Original Value

2 posts, 0 answers
  1. Marco
    Marco avatar
    9 posts
    Member since:
    Oct 2018

    Posted 20 Nov 2018 Link to this post

    In Radgrid view, the grid cell normally have to show in format.string("{0:0.00%}",Value/100) but when I click the cell the format should be removed and the cell value should change into Original value (value/100). Can you please suggest any property to Acchieve my result? Attached image for your reference.

    Thank you in advance

  2. Dimitar
    Dimitar avatar
    2907 posts

    Posted 21 Nov 2018 Link to this post

    Hi Marco,

    Each column has a FormatString property which can be used for this:
    protected override void OnLoad(EventArgs e)
        var col = radGridView1.Columns[0] as GridViewDecimalColumn;
        col.FormatString = "{0:0.00%}";

    I hope this will be useful. Let me know if you have additional questions.

    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top