Update question

  • Thread starter Thread starter Adriano
  • Start date Start date
A

Adriano

Hello,

I have a table with LastUpdated column,
users update some data there in a datagrid, for examle rows 10, 15 and 20,
the question is, is there a possible way to auto update (with current system
datetime) that field (LastUpdated) for each changed row in the
datasource???

thanks in advance!
Adriano
 
Adriano,

Trap the dataset's RowUpdating event and assign Date.Now to the LastUpdated
column.

Alan
 
I should have had more coffee before hitting send. It should be the
DataTABLE's RowChanging event.

Grab the row that's being changed, then assign Date.Now as you wish.

Coffee. Must...get...more...coffee...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top