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
395
WebGrid Column Format fails
posted

Hi,

I am trying to apply the following:

    uwg.DisplayLayout.Bands[0].Columns[0].Format = "###.###.###,00";

but in return I get this:

    7681,25000000

To add to the confusion, if I try the following pattern:

    ###,###,###.00

I get the following

    7 681,25

Strange indeed.

Help any one?

Parents
  • 3732
    Suggested Answer
    posted

    Hi,

    The first one is wrong and the second one worked fine. Here is my line of code:

    this.UltraWebGrid1.DisplayLayout.Bands[0].Columns[2].Format = "###,###,###.00";

    If it's not working, then I would like to know what kind of data you are getting from the database. Please let me know the version of NetAdvantage, Visual Studio and .Net Framework you are using.

    Thanks

     

Reply Children