Hi,
dgTransaction_S electedIndexCha nged(object sender, System.EventArg s e)
That sender is actually the object that raised the event.
So, in this case you could do:
((DataGrid)send er).Items[i].Controls[0].ClientID; //Do something
meaningful here!
What is the difference (if any) between using the sender object cast to
the correct object type over just using the variable name directly:
dgTransaction.I tems[i].Controls[0].ClientID;
Any help on this would be appreciated.
Regards,
Steven
*** Sent via Developersdex http://www.developersdex.com ***
dgTransaction_S electedIndexCha nged(object sender, System.EventArg s e)
That sender is actually the object that raised the event.
So, in this case you could do:
((DataGrid)send er).Items[i].Controls[0].ClientID; //Do something
meaningful here!
What is the difference (if any) between using the sender object cast to
the correct object type over just using the variable name directly:
dgTransaction.I tems[i].Controls[0].ClientID;
Any help on this would be appreciated.
Regards,
Steven
*** Sent via Developersdex http://www.developersdex.com ***
Comment