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
120
Dynamic Columns - Format of Columns
posted

Hi All

I have a WebGrid which gets dynamically filled depending on the users choice on a previous page. This means that it can have various combinations of columns. It seems that if the columns are not predefined, then the alignment of numbers is not correct.

Is it possible to define the formatting of dynamic columns and add a character to indicate large numbers (eg 1000000 should be display as 1'000'000)? How can this be done?

Parents
No Data
Reply
  • 21382
    posted

     If you are just trying to format the values of the cells, in the InitializeLayout event of the grid, set the .Format property to the mask that would be called by the .ToString of the object to get the layout you want.

Children
No Data