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

Radgridview cell value format change to Original Value

1 Answer 229 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Marco
Top achievements
Rank 1
Marco asked on 20 Nov 2018, 03:52 PM

In Radgrid view, the grid cell normally to show in format.string("{0:0.00%}") 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 my result? Attached image for your reference.

Thank you in advance

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 21 Nov 2018, 10:58 AM
Hi Marco,

Each column has a FormatString property which can be used for this:
protected override void OnLoad(EventArgs e)
{
    base.OnLoad(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.

Regards,
Dimitar
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.
Tags
GridView
Asked by
Marco
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or