Farouk,
>I am trying to create a gridview to display master codes from a table. When I tried to delete a row, I have the following message:
>
>Concurrency violation: the DeleteCommand affected 0 of the expected 1 records.
Can you post the full stack trace so I can better see what's happening. Do you have any child business object relationships set up? Is ImmediateDelete true or false on this business object?
Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com