Pencil icon in the datagrid

G

Guest

Hello,


As soon as user starts edit in datagrid the pencil icon is shown on left
side of the datagrid. If user clicks on the pencil it is hidden again.

Is it possible to save modified data back to the database when user clicks
on the pencil? How to do that?

I'm using .NET Framework 1.1 and Visual Studio .NET 2003

Thanks for any help.
 
G

Guest

Hi SÅ‚awomir
Is it possible to save modified data back to the database when user clicks
on the pencil? How to do that?
Yes i think so.
You can get the old data comming from database from your datasource
"under" your Grid. Each datarow stores them. toghter with the new data.

try to changed the state of a datarow to unchanged to avoid writing
neu data to the database. Perhaps you get the old data by this way.
Otherwise you have to copy them from the old version of the row.

Good luck.
Niels
 
G

Guest

nieurig said:
Yes i think so.
You can get the old data comming from database from your datasource
"under" your Grid. Each datarow stores them. toghter with the new data.

try to changed the state of a datarow to unchanged to avoid writing
neu data to the database. Perhaps you get the old data by this way.
Otherwise you have to copy them from the old version of the row.

Thanks for the reply, nieurig.

Well, yes, I know how to write data to the database.

My problem is how to make my code execute when user clicks on this pencil.
 

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

Top