How to implement an OnRowChanging event RRS feed

  • Question

  • 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
    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);

    Thursday, November 15, 2007 8:26 PM