S
Steven Blair
Hi,
dgTransaction_SelectedIndexChanged(object sender, System.EventArgs e)
That sender is actually the object that raised the event.
So, in this case you could do:
((DataGrid)sender).Items.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.Items.Controls[0].ClientID;
Any help on this would be appreciated.
Regards,
Steven
dgTransaction_SelectedIndexChanged(object sender, System.EventArgs e)
That sender is actually the object that raised the event.
So, in this case you could do:
((DataGrid)sender).Items.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.Items.Controls[0].ClientID;
Any help on this would be appreciated.
Regards,
Steven