Binding an editable typed list

Posts   
 
    
dvdstelt
User
Posts: 22
Joined: 06-Dec-2005
# Posted on: 06-Dec-2005 15:39:37   

Hi there,

I have this typed list and I bind it to a datagridview in 2005.

Now I know it is not editable. But are there any options here? Can I bind 'something' out of this typed list and have an editable datagrid?

When I've then editted some fields, I can walk through every row in the datagrid and instantiate new custom entities to persist all changed data into the database.

Not?! simple_smile

Dennis

Paul.Lewis
User
Posts: 147
Joined: 22-Aug-2005
# Posted on: 07-Dec-2005 04:21:30   

Dennis,

I haven't yet had the chance to explore the new .NET 2.0 DataGridView control. Looking at it in MSDN the control does support editing; but I believe you know that.

Since your using a typed list you'll be binding the DataGridView to a datatable. You'll need to walk the control row by row and create an entity collection to persist the edits.

Have fun with the new control; it looks awesome!