Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
4133
Custom Formatting Of Read-Only Cell Text
posted

I need to be able to show numeric values with a different number of decimal places on a per row basis.  I have two editor controls that I use in the InitializeRow event and this works fine for editing.  The problem is that I sometimes put the grid into read-only mode (cell = noactivation) and it appears that the editor controls do get set, but that they aren't used to display the data.  Is this correct?

I have read other posts that talk about DataFilters.  How would I use a DataFilter on a numeric column in the grid?  All the examples I have seen are for checkboxes.

Thanks

Rich

 

Parents
No Data
Reply
  • 469350
    Suggested Answer
    Offline posted

    rehemann said:
    The problem is that I sometimes put the grid into read-only mode (cell = noactivation) and it appears that the editor controls do get set, but that they aren't used to display the data.  Is this correct?

    No, that's not the case. The cell text is still drawn using the editor even when the cell is read-only. There's no reason why the Activation of a cell should affect the formatting of the text.

    If that's happening, it's a bug.

    rehemann said:
    I have read other posts that talk about DataFilters.  How would I use a DataFilter on a numeric column in the grid?  All the examples I have seen are for checkboxes.

    It's the same principal. You would simply use a different type of editor, like an UltraTextEditor or UltraNumericEditor, depending on whether or not you want masking in the cell.

Children
No Data