|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Row - BeginEdit and EndEdit -> Why?Hi
Why would I use the BeginEdit and EndEdit on a row? The row still updates without them. Is it to just make it easier to roll back via CancelEdit? Thanks Vayse Vayse,
The EndEdit pushes the rows in the other datasources if you have no rowchange. Cor Show quote "Vayse" <vayse@nospam.nospam> schreef in bericht news:%239sRo%234bGHA.4932@TK2MSFTNGP03.phx.gbl... > Hi > Why would I use the BeginEdit and EndEdit on a row? The row still updates > without them. > Is it to just make it easier to roll back via CancelEdit? > Thanks > Vayse > You would use BeginEdit/EndEdit if you where changing multiple values that if
changed individually cause constraint violations or underdesired intermediate changes in the DataViews. Show quote "Cor Ligthert [MVP]" wrote: > Vayse, > > The EndEdit pushes the rows in the other datasources if you have no > rowchange. > > Cor > > "Vayse" <vayse@nospam.nospam> schreef in bericht > news:%239sRo%234bGHA.4932@TK2MSFTNGP03.phx.gbl... > > Hi > > Why would I use the BeginEdit and EndEdit on a row? The row still updates > > without them. > > Is it to just make it easier to roll back via CancelEdit? > > Thanks > > Vayse > > > > > Hi Vayse,
BeginEdit/EndEdit is used during data binding. When you're trying to edit a field and then pushed the changes to the data source of the binding, these methods are used. They have nothing to do with the update to the database. Kevin Yu Microsoft Online Community Support ============================================================================ ========================== When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from your issue. ============================================================================ ========================== (This posting is provided "AS IS", with no warranties, and confers no rights.) "Kevin Yu [MSFT]" <v-k***@online.microsoft.com> wrote in message Thanks, I understand now.news:XIsoNs%23bGHA.220@TK2MSFTNGXA01.phx.gbl... > Hi Vayse, > > BeginEdit/EndEdit is used during data binding. When you're trying to edit > a > field and then pushed the changes to the data source of the binding, these > methods are used. They have nothing to do with the update to the database. > > Kevin Yu > Microsoft Online Community Support > You're welcome.
Kevin Yu Microsoft Online Community Support ============================================================================ ========================== When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from your issue. ============================================================================ ========================== (This posting is provided "AS IS", with no warranties, and confers no rights.) |
|||||||||||||||||||||||