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
570
Override Column Format on Specific Cells
posted

I'm using the UltraWebGrid (8.3) to edit data and have a column with format set as "#,##0.00" to display dollar amounts.  On a few of the cells in that column I need to allow whole dollars only.  I wanted to override the column format property for those cells to "#,##0" in the InitializeRow method but can't find any format property at the cell level.  How would I accomplish this?

 Thanks in advance.

Parents
  • 28464
    posted

    Hello,

    Yes, this is correct - format is only applicable per Column programmaically and applies for all Cells. However, you can easily change that - just set the Cell.Text property to any format you wish using String.Format (String.Format uses similar format mask syntax as the Column.Format property)

Reply Children