471,309 Members | 1,050 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,309 software developers and data experts.

How do I implement a OnRowChanging event implementation in a dataset?

Hi,
I want to implement a OnRowChanging event in the partial class of a
dataset but when I do so, I get the following error message:
"'...Table' already contains a member called 'OnRowChanging' with the
same parameter types"
Which is true, of course, but I can't figure out how to react to the
event. Am I supposed to change the designer.cs unit or is there another
way?
This is the code that generates the error:
public partial class NorthwindDataSet
{
partial class CustomersDataTable
{
protected override void
OnRowChanging(DataRowChangeEventArgs e)
{
Console.WriteLine("Row_Changing Event: name={0};
action={1}", e.Row["name"], e.Action);
}
}
}
thx,
bert

Dec 13 '05 #1
0 1056

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by rodrigo | last post: by
3 posts views Thread by Ohad Young | last post: by
10 posts views Thread by localhost | last post: by
reply views Thread by emin.shopper | last post: by
10 posts views Thread by Michele Simionato | last post: by
6 posts views Thread by Smithers | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.