New Posts New Posts RSS Feed: Add New Row on Infragistics Grid
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Add New Row on Infragistics Grid

 Post Reply Post Reply
Author
Customer View Drop Down
Senior Member
Senior Member
Avatar
User Submitted Questions to Support

Joined: 30-May-2007
Location: United States
Posts: 260
Post Options Post Options   Quote Customer Quote  Post ReplyReply Direct Link To This Post Topic: Add New Row on Infragistics Grid
    Posted: 16-Oct-2007 at 8:55pm

You create a grid (in our case it was an infragistics grid) and follow the documentation on how to add the Addrow to the top of the grid.

If you view the code and add the event handler as in the tutorials everything will work out.

BUT if you double click on the event to get VS to create the event handler for you and then add the code to create a new entity you will probably get a concurrency error message that the value “123” or whatever the key field is already exists in the database.

The reason for that is that the event default stuff is still firing and adding the record and then the event fires and ‘re-adds’ the information.

I don’t know all the technical jargon to what is happening.  All I know is that when we removed the event from the designer code (or delete it in the event properties window) and then added the event handler in code everything worked fine.

 

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down