Where can I add an event handler To the RowUpdated event for a table adapter
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.
精彩评论