When to Update() a database from datagridview

When to Update() a database from datagridview

Post by RGlhbW9uZE » Thu, 09 Feb 2006 10:49:31


Hi there

I haven't been able to find the answer to this one anywhere. I want to
automatically update the underlying database when the user modifies the table
associated with a datagridview. I tried both CellLeave and RowLeave to call
Update(), but neither works well. Some info in the grid doesn't appear in the
database. What is the appropriate event to hook in a datagridview, so that
the changes are automatically saved through to the database?

Thanks
Dave
 
 
 

When to Update() a database from datagridview

Post by Stephen Ho » Thu, 09 Feb 2006 21:12:45

> I haven't been able to find the answer to this one anywhere.

Well you wont find it here.
The newsgroup is for classic ADO, pre.NET.
DataGridView's don't come with pre.NET ADO.

I dont really understand why so many .NET programmers post here.

You want ONLY Microsoft newsgroups that have "dotnet" somewhere in the name.
There is a dedicated DataGridView Microsoft newgroup.

Newsgroup support on .NET:
microsoft.public.dotnet.* hieracrchy

Newsgroup support on ADO.NET:
microsoft.public.dotnet.framework.adonet

Newsgroup support on Datagrid:
microsoft.public.dotnet.framework.aspnet.datagridcontrol

Newsgroup support on VB.NET:
microsoft.public.dotnet.framework.languages.vb
microsoft.public.dotnet.framework.languages.vb.controls
microsoft.public.dotnet.framework.languages.vb.data
microsoft.public.dotnet.framework.languages.vb.upgrade

Stephen Howe

 
 
 

When to Update() a database from datagridview

Post by Stephen Ho » Thu, 09 Feb 2006 21:30:38

> I haven't been able to find the answer to this one anywhere. I want to
table
call
the

You also might find this FAQ useful
http://www.yqcomputer.com/
Scroll down to section 4 and 5

Stephen Howe