[SOLVED] TypedView Always Read Only?

Posts   
 
    
DaveR
User
Posts: 43
Joined: 15-Jun-2004
# Posted on: 21-Sep-2004 16:14:46   

We are using a TypedView to bind to a DataGrid. When the user makes a change to one of the values in the grid, we make the necessary database update and then want to display the modification in the grid. But when we attempt to update the field of the DataView, it throws an exception that it is read-only.

It is not desirable to refetch the entire contents of the TypedView on each update because it is a large amount of data. Is there any way for a bound TypedView to be read/write?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 21-Sep-2004 17:08:04   

It is set to readonly internally. You can make it writable by setting the ReadOnly property of all DataColumn objects in the typedview object to false. (or the ones you want to make writable)

Frans Bouma | Lead developer LLBLGen Pro