Thread View: borland.public.delphi.database.ado-net
2 messages
2 total messages
Started by Roland Beenhakker
Fri, 22 Apr 2005 10:45
Which event to tricker data change in databind control
Author: Roland Beenhakker
Date: Fri, 22 Apr 2005 10:45
Date: Fri, 22 Apr 2005 10:45
29 lines
1777 bytes
1777 bytes
Hi all, I have a simple problem, but so far I have not found a solution for it, so it might not be so simple. :( I have a winform with databound controls, and want to set a post button enabled just as the user edits the data. (Just like the good old navigator) (I use sqlDataAdapters) I tried the following: 1) DataTable Events RowChanged, RowChanging, ColumnChanging, ColumnChanged, but they are raised when changing rows or columns. (Too late) 2) All the CurrencyManager available events. Of course I could trigger the Change events of the edit boxes, but that must be done on all the forms, and that is not so good imo. But there must be some kind of OnRowStateEvent (aka Delphi BeforeEdit, AfterEdit), or am I looking in the wrong direction? Thanks. -- My Delphi blog: http://beensoft.blogspot.com -- --- posted by geoForum on http://delphi.newswhat.com
Re: Which event to tricker data change in databind control
Author: Marc Rohloff [TeamB]
Date: Fri, 22 Apr 2005 17:07
Date: Fri, 22 Apr 2005 17:07
13 lines
1379 bytes
1379 bytes
"Roland Beenhakker" <beensoft@yahoo.com> wrote: >But there must be some kind of OnRowStateEvent (aka Delphi BeforeEdit, >AfterEdit), or am I looking in the wrong direction? No not really. This is just the way it works in ADO.NET. The easiest way would be to go through all the databindings associated with the CurrencyManager and link the controls changed events to your own event handler. -- Marc Rohloff TeamB
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads