Results 1 to 2 of 2

Thread: RESOLVED - Datagrid ColumnButton

Threaded View

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2000
    Location
    Seattle
    Posts
    954

    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>
    Last edited by brianh; Feb 26th, 2004 at 04:17 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width