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
550
Format an individual Cell rather than entire Column
posted

Hello,

Is it possible to apply a format (like "###,###,####.00) to a certain cell in a grid instead of appling the same format to an entire column?

 

I have many rows in a grid where I would like to apply a certain format to a cell (in the InitializeRow event) depending on certain attributes in the row. So some cells in the same column should have different formats in different rows.

Thank you for your help!

Parents
No Data
Reply
  • 469350
    Offline posted

    The Format property only exists on the column, not the cell. So you can't do this with a property setting. 

    One way you could to this would be to use an unbound column. You could hide the real, bound column in the grid and add an unbound column. You would then use the InitializeRow event to examine the value in the bound column and populate the unbound column with whatever text you want in whatever format you want. 

     

Children