How to Pass Parameters to an Event
(Tuesday, September 14, 2004)
Found the following interesting discussion in the Newsgroups:
Passing Parameters to an Event by:Lucas Tam
| Hi all,
What is the best way to pass parameters to an event?
I have a dataadapter.update that fires, and I am capturing the RowUpdated event. How do I pass some custom pamaeters into this event?
Thanks!
-- Lucas Tam (REMOVEnntp@rogers.com)
| | | Reply: by:Anonymous
| | | Hi Lucas Tam,
You can do that in two ways,
1. By inheriting Dataadapter class to a class, and redifining your own event with all the custom parameters which you want and raise the event from the Dataadapter.update event.
2. Have some global variables and set some data, use them in the event.
I hope, it will help you.
With regards,
Sadha Sivam S Malleable Minds Software Pvt Ltd., India
|
Posted by Xander Zelders

|
0 Comments:
Post a Comment
<< Home