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

DataEditFormatString does not seem to work

3 Answers 108 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Brandon
Top achievements
Rank 1
Brandon asked on 04 Aug 2011, 11:56 PM
Hi Guys

I have a RadGridView with only one editable column
The editable column is a GridViewDecimalColumn.  I have set the FormatString property to be "{0:P}" and it successfully appears as a Percentage.  However when I set the DataEditFormatString to be"{0:P}", it does not appear as a Percentage when editing.

How is the DataEditFormatString meant to work as I cannot find much information about what it is meant to do or how to use it?

Thanks

Bran

3 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 10 Aug 2011, 09:00 AM
Hi Brandon,

Thank you for writing.

When a cell in a GridViewDecimalColumn is in edit mode it displays a GridSpinEditor. Unfortunately, the GridSpinEditor, just like the standard numeric controls, does not allow formatting text.

I hope that you find this information helpful. Let me know if I can assist you further.

All the best,
Stefan
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

0
ShareDocs
Top achievements
Rank 1
answered on 07 May 2013, 07:09 AM
Hi,
is there anything new about this?
It Seems that the property is obsolete... what is the replacement?

isn't there any workaround?
0
Stefan
Telerik team
answered on 09 May 2013, 01:12 PM
Hello Lior,

Thank you for writing.

The property comes from GridViewDataColumn (the base type) and should not be used. It was marked as obsolete and will be removed from the code base in future.

As I mentioned, this type of editor does not support string formatting. If you want you can use a text column or mask column instead.
 

Regards,
Stefan
the Telerik team
WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
Tags
GridView
Asked by
Brandon
Top achievements
Rank 1
Answers by
Stefan
Telerik team
ShareDocs
Top achievements
Rank 1
Share this question
or