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
Format Cells Differently Within A Grid Column
posted

I would like to format cells differently within a column.  I currently am able to set the EditorControl property of the cell to handle input, but once the editor control disappears, all the cells in the column take on whatever is stored in the column's format property.  Is there a way to format cells differently on a row by row basis?  I have some rows that need to show 4 decimal places and some that need to show whole numbers only.

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

     Hi Richard,

        I think you have to leave the Format property of the column blank and then use the mask properties on the Editor Control like MaskDisplayMode to format the column the same way as the mask.

        If that doesn't work, then there are some alternatives, but they are not trivial. You might be able to use a DrawFilter to draw the text yourself. Or you might be able to do this by implementing your own DefaultOwner for your editor.  

Children