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
4028
Inserted record not being displayed
posted

I have been using infragistics controls (including the UltraGrid) in conjuntion with netTiers in my app for a while, with some success. The UltraGrid is bound to the strongly typed objects generated by the netTiers scripts.

I have just upgraded my netTiers scripts, so the code behind the strongly typed objects the grids are bound to have changed. Now when I click on the "empty" row at the bottom of the grid, nothing happens. Previously it would change to editable, and I could enter details into the grid. Now, it stays non editable.

Interestingly enough, blank records are inserted into the underlying database. They just arnt being displayed by the grid.

I realise this is not really a problem with Infragistics - it is more an issue of the behaviour of the objects I'm using changing. I'm just wondering if someone can suggest what sort of thing would change this behaviour - what sort of thing can I look for?

Thanks.

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    I am not familiar with the netTiers objects, but if you are seeing new rows added to the data source and they are not displaying in the grid, then it's probably an indication that the netTiers objects are not sending the grid a ListChanged notification for the AddNew row.

    Have you tried this same thing using the DataGridView control in DotNet to see if you get the same (or similar) results?

    Sometimes it helps to wrap your DataSource in a BindingSource before binding to the grid.

Children