Update row from TypedList

Posts   
 
    
heerser avatar
heerser
User
Posts: 36
Joined: 15-May-2005
# Posted on: 15-May-2005 23:13:18   

Hi all, I have a datagrid that binds to a TypedList. The TypedList contains the fields of two tables. When the user updates a row in the datagrid one table should be updated. What is the best way to update a single row/object?

Many thanks in advance!

Grt.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 16-May-2005 11:05:03   

heerser wrote:

Hi all, I have a datagrid that binds to a TypedList. The TypedList contains the fields of two tables. When the user updates a row in the datagrid one table should be updated. What is the best way to update a single row/object?

TypedLists are considered read-only, so if you want to update entities using the typedlist data, you should load the entities frm the db, update the fields which are updated in the typedlist and then save the entities again.

Frans Bouma | Lead developer LLBLGen Pro