PC Review


Reply
Thread Tools Rate Thread

How best to update DataAdapter to make DataGrid update immediately like table in Access would

 
 
John Edens
Guest
Posts: n/a
 
      3rd Aug 2005
Hey all,

What is the best Event to use to trigger a DataAdapter Update so that any
changes to the bound DataGrid are immediately updated to the underlying data
source?

Basically I want the VB datagrid to work in the same way the spreadsheet
view of a table in Access would work - enter a new value into the cell - the
underlying record is immediately updated. Same for entering a new record
into the DataGrid - would like an immediate update of the underlying data
source.


 
Reply With Quote
 
 
 
 
Mike Berro
Guest
Posts: n/a
 
      5th Aug 2005
Probably using the RowValidated event. Access doesn't update the database
until you move off the row, or click the "row header", so that should
duplicate it. (I'm using the DataGridView in Net2.0; dunno if DataGrid
supports that event.)

---Mike

"John Edens" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Hey all,
>
> What is the best Event to use to trigger a DataAdapter Update so that any
> changes to the bound DataGrid are immediately updated to the underlying
> data source?
>
> Basically I want the VB datagrid to work in the same way the spreadsheet
> view of a table in Access would work - enter a new value into the cell -
> the underlying record is immediately updated. Same for entering a new
> record into the DataGrid - would like an immediate update of the
> underlying data source.
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot seem to update underlying DataAdapter with Values in Datagrid gmartin@dsgsolutions.net Microsoft Dot NET Framework Forms 3 14th Aug 2008 05:57 PM
dataadapter.Update() multiple table update strategies jarb Microsoft ADO .NET 3 2nd Nov 2006 08:57 AM
DataAdapter.Update works w/ datagrid but not w/ textboxes johnb41 Microsoft VB .NET 2 2nd Mar 2005 08:14 PM
Need to update dataadapter from datagrid that doesn't contain field Larry Woods Microsoft VB .NET 3 14th Nov 2004 10:29 PM
DataGrid Update Doesn't Show Immediately Wickwack Microsoft ASP .NET 0 22nd Jul 2003 11:49 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:23 AM.