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
40
Not saving the Schema
posted

I can't get the Data Schema to save.

I have the UltraWinGrid on my form.

Go into the designer.

Select Basic settings -> Data Schema

Click on Manually Define Schema.

 Place a few rows down.

ie CostId, DataType = System.int32, DefaultValue = System.int32 (0)

Amount, DataType = System.decimal, DefaultValue = System.Decimal (0)

I define others as decimal.

Click Ok, and it asks if you will be NOT be supplying a datasource at Runtime/you will be supplying a datasource at Runtime.

I select the "I will be supplying a datasource at runtime"

Hit Ok,

I get the summation signs on my column headers.

If I hit "Apply" then "Ok"

The summation signs disappear.

if I try to go back into the designer, none of the datatype information is retained. It goes back to String and dbnull for the data type and default. Now this may not be the cause of the problem that I'm really having.

I have a summary on the Amount column. If I run it, it works the first time the window get's a datatable. The second time it get's a datatable, it gives me a null reference exception in the control itself.

Sometimes it will work for a few runs, then all of a sudden a Null Reference exception and it gives the stupid message about needing a "new"

 

 

Parents
No Data
Reply
  • 210
    posted

    FWIW, I am having the same issue.  While in design mode, I define a scheme for the grid that will have a datasource supplied at runtime.  After setting the data types for each column, and exiting the grid designer, all data types are reset to "string".

     Is this something that should submitted as a bug report, or is there something I'm not doing correctly?

Children