|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Pencil icon in the datagridHello,
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. -- Sławomir Piotrowski / Telsat GP Rejestracja Czasu Pracy i Kontrola Dostępu http://www.ewidencja-czasu-pracy.pl Hi Sławomir
> Is it possible to save modified data back to the database when user clicks Yes i think so.> on the pencil? How to do that? 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 "nieurig" wrote: Thanks for the reply, nieurig.> > 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. 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. -- Sławomir Piotrowski / Telsat GP Rejestracja Czasu Pracy i Kontrola Dostępu http://www.ewidencja-czasu-pracy.pl
Other interesting topics
Inherited Menus and Modifiers
All MDI forms repaint when one is resized Dialog ghost left on window Editing hyperlinks in RichTextBox Control in C#.NET GridView Exception: reentrant call to the SetCurrentCellAddressCore function Screen.PrimaryScreen.WorkingArea question Search combobox attaced to datagrid Manually adding usercontrol to panel on form Form TopMost property even appears over windows taskbar Force display of tooltips on NotifyIcon |
|||||||||||||||||||||||