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
1280
Add new row/item to XamGrid from code
posted

Hi,

I have been using the examples from this thread

the update and delete examples are working fine, but the adding example doesn't work.

I get a NullReferenceException

Infra error

And by the way, doing it that way will just create a new empty item, which has to be edited.

So my question is:

Isn't it possible to just add a new empty row to the grid in edit-mode, when you push a ADD button ?

Parents
No Data
Reply
  • 28407
    posted

    HI,

     I could not reproduce your issue using the sample referred to in the Thread.

     You should find out what causing the NullReference exception.  It could be that you just have not set your datasource.

     If you are going to add data to the grid not using the UI, it is best to simply add it to the collection the XamGrid is bound to.

Children