T
Terry McNamee
I have a DataTable which i have added data to.
I have a custom method that prints a DataView of the DataTable out on the
screen. The problem I'm having is, i need to call the custom method
whenever the DataTable is changed.
How can I do this? this is not a standard binding problem, since I need to
call a custom method to paint the items on the screen.
view.ListChanged += new ListChangedEventHandler(this.view_Changed);
private void view_Changed(object sender,
System.ComponentModel.ListChangedEventArgs e)
{
this.populateMenu(); //we want to populate the menu again.
}
Many thanks.
I have a custom method that prints a DataView of the DataTable out on the
screen. The problem I'm having is, i need to call the custom method
whenever the DataTable is changed.
How can I do this? this is not a standard binding problem, since I need to
call a custom method to paint the items on the screen.
view.ListChanged += new ListChangedEventHandler(this.view_Changed);
private void view_Changed(object sender,
System.ComponentModel.ListChangedEventArgs e)
{
this.populateMenu(); //we want to populate the menu again.
}
Many thanks.