Late binding issues with Option Strict on

drskywalker

New Member
Okay. I have a DataGrid with two EditCommandColumns both use the same event handler. I want to do different things depending on which Edit link is clicked. Without Option Strict on I am able to access e.CommandSource.text to derive which link has been clicked. Option Strict dis-allows late binding and hence will not allow me to do this. Is there another way to access which edit link was click while being Option Strict compliant. I do not want to create a TemplateColumn with a asp:linkbutton in it because I wish to have an event handler with:<BR><BR>e As System.Web.UI.WebControls.DataGridCommandEventArgs<BR><BR>which is the case with the event handler denoted in the DataGrid's OnEditCommand parameter not <BR><BR>e As System.EventArgs<BR><BR>which is the case with a TemplateColumn with a asp:LinkButton.<BR><BR>I hope this makes some sense and someone may have a solution (btw: questions like "Why do you need Option Strict on?" will be directed immediately to my mind's trash can)<BR><BR>r.p.Re-reading my post I realize it is a bit confusing. To reiterate, I am simply trying to have more then one EditCommandColumn in a DataGrid and successfully handle the event with Option Strict on.
 
Back
Top