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
332
Format on a GridColumn using Linq
posted

Hello everybody

I have a WinGrid which DataSource is made from a Linq Query. Everything works fine. Now, when I try to Format a Column like

e.Layout.Bands[0].Columns[

"ColumnName"].Format = "{0:##,##0.00}";

the Format ist not accepted. Following things I already tried:

  • Convert the Column as a  string in my Linq Query
  • Convert the Linq Query to a dataset and bind this to the grid

It doesn't matter what I try, the Format is not accepted.

I am working with Infragistics Winforms 9.1

Thanks for help

Parents
No Data
Reply
  • 69832
    Offline posted

    Going by the code you pasted, you are setting the Format for a column named 'ColumnName', which I'm guessing is of type string. Formats are not applied to string data values.

Children