PC Review


Reply
Thread Tools Rate Thread

DataRowAction... how to get determine changed values?!

 
 
Tim Mackey
Guest
Posts: n/a
 
      1st Sep 2004
hi,
i have a rowchanged handler for a custom dataset class, at the bottom of this post.
when the DataRowAction is changed, then i want to do something only when the ParentID for that row has changed. if its any of the other columns i don't need to do anything. how can i figure out which parts of the row got changed? i wrote a hopeful solution below but it obviously doesn't work.
many thanks in advance for anyone's advice on this.

tim mackey.


private void RowChanged(object sender, WMDataSet.pRowChangeEvent e)
{
switch(e.Action){
case DataRowAction.Change:
if(e.Row.ChangedColumns.Contains("ParentID") ... // wishful thinking!
...
}


\\ email: tim at mackey dot ie //
\\ blog: http://tim.mackey.ie //
67d0ebfec70e8db3
 
Reply With Quote
 
 
 
 
Tim Mackey
Guest
Posts: n/a
 
      13th Sep 2004
Hi,
just replying to myself for the benefit of anyone with the same problem i encountered.
the rowChanged event is not the one i needed. the columnChanged event gives a finer level of detail about the values that changed, and it tells you what column in the row is being changed too. i just didn't know this event existed!

tim


\\ email: tim at mackey dot ie //
\\ blog: http://tim.mackey.ie //
67d0ebfec70e8db3
"Tim Mackey" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
hi,
i have a rowchanged handler for a custom dataset class, at the bottom of this post.
when the DataRowAction is changed, then i want to do something only when the ParentID for that row has changed. if its any of the other columns i don't need to do anything. how can i figure out which parts of the row got changed? i wrote a hopeful solution below but it obviously doesn't work.
many thanks in advance for anyone's advice on this.

tim mackey.


private void RowChanged(object sender, WMDataSet.pRowChangeEvent e)
{
switch(e.Action){
case DataRowAction.Change:
if(e.Row.ChangedColumns.Contains("ParentID") ... // wishful thinking!
...
}


\\ email: tim at mackey dot ie //
\\ blog: http://tim.mackey.ie //
67d0ebfec70e8db3
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
use vb to determine last cell changed jck.office@gmail.com Microsoft Excel Programming 10 8th Oct 2008 04:44 AM
Determine if the sheet has been changed Erik Wikström Microsoft Excel Programming 2 12th Dec 2007 03:00 PM
Determine if form values have changed =?Utf-8?B?WFA=?= Microsoft Access Form Coding 4 6th Feb 2007 11:19 PM
DataSet.GetChanges() in RowChanged(DataRowAction.Add) =?Utf-8?B?U29yaW4gRG9saGE=?= Microsoft ADO .NET 8 19th Sep 2005 06:02 PM
determine if a cell changed value =?Utf-8?B?RGF2ZTAx?= Microsoft Excel Worksheet Functions 0 8th Jul 2005 04:49 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:54 AM.