Update in DataGrid

  • Thread starter Thread starter Mariame
  • Start date Start date
M

Mariame

Hi everyone,
how could i update in datagrid & then update in the database???

Thx & Regards
 
Mariame,

That needs more than with a winfowsform, so I can not give it you only
basicly because you have to make decissions first .

Do you use a dataset, than you have to save the dataset in a session, (or in
a viewstate what I would not do).

Then you can from the button events from the datagrid update that dataset
and update that using the dataadapter in your database.

Do you use a datareader bounded to the datagrid, than you can make, when
there is an update buttonclick, update the database using the
command.executenonquery or another one in that range with an Insert or an
Update SQL string.

I hope this helps something?

Cor
 
Back
Top