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
520
Using AddNew
posted

Hi,

I'm using a bound grid in VB 2005.

I set up several valuelists on several columns.

I issue a Grid.DisplayLayout.Override.AllowAddNew = AllowAddNew.TemplateOnBottom.

Everything works ok - value lists kick in, new rows can be saved, updated, deleted.

I (my users) have one slight issue, the underlying values (on valuelist fields) are integers, obvisiousily they pick a text value from the valuelist, if a user opens the valuelist and doesn't select anything and move to the next cell, a zero appears in the previous cell. 

I suppose my question is,   can I stop this happening.

  • 469350
    Offline posted

    It sounds to me like your field does not allow nulls.

    What's the data source of your grid? 

    What version of the grid are you using? 

    If the user does not change anything in the cell and the data source supports nulls, then it should not be changing from null to 0. Certainly the grid should not be doing that. It's possible that the data source is doing it.