DataEditFormatString does not seem to work

4 posts, 0 answers
  1. Brandon
    Brandon avatar
    8 posts
    Member since:
    Nov 2010

    Posted 04 Aug 2011 Link to this post

    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?


  2. Stefan
    Stefan avatar
    2911 posts

    Posted 10 Aug 2011 Link to this post

    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,
    the Telerik team

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

  3. ShareDocs
    ShareDocs avatar
    91 posts
    Member since:
    Oct 2012

    Posted 07 May 2013 Link to this post

    is there anything new about this?
    It Seems that the property is obsolete... what is the replacement?

    isn't there any workaround?
  4. Stefan
    Stefan avatar
    2911 posts

    Posted 09 May 2013 Link to this post

    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.

    the Telerik team
    WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
Back to Top