RESOLVED - Datagrid ColumnButton
Why am I not getting my CommandName in the following event? (It comes in empty).
Code:
Private Sub dgMaster_ItemCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles dgMaster.ItemCommand
If e.CommandArgument = "ShowDetails" Then
BindDL(2)
End If
End Sub
HTML
Code:
<asp:ButtonColumn Text="Show Details" ButtonType="PushButton" DataTextField="id" HeaderText="Show Details" CommandName="ShowDetails" DataTextFormatString="Show Details"></asp:ButtonColumn>