开发者

Where can I add an event handler To the RowUpdated event for a table adapter

开发者 https://www.devze.com 2023-01-11 00:04 出处:网络
I have strongly typed dataset and Data Access Layer top of it. I am extending partial cla开发者_开发百科ss of tableadpater.

I have strongly typed dataset and Data Access Layer top of it.

I am extending partial cla开发者_开发百科ss of tableadpater.

public partial class InvoiceTableAdapter 
{

    public void OnRowUpdated(object sender, OleDbRowUpdatedEventArgs e)
    {
        MessageBox.Show("I am here");
    }

}

Question: Where can i add event handler for this?


If you use VB.NET, you can doubleclick somewhere and the event-code is generated. In C# you need to override EndInit() and code it yourself.

Here's something on MSDN.

0

精彩评论

暂无评论...
验证码 换一张
取 消