How to get Gridview cell value on select?

Discussion in 'ASP .Net Web Controls' started by Dave Hewes, Feb 28, 2007.

  1. Dave Hewes

    Dave Hewes Guest

    I am new to 2.0 and converting a page over from 1.1 datagrid.

    How do I do the same thing as the following in a Gridview?

    Private Sub DataGrid1_ItemCommand(ByVal source As Object, ByVal e As
    System.Web.UI.WebControls.DataGridCommandEventArgs) Handles
    DataGrid1.ItemCommand
    If e.CommandName = "Select" Then
    Server.Transfer("frmProjectView.aspx?ProID=" +
    e.Item.Cells(1).Text)
    End If
    End Sub


    Dave
     
    Dave Hewes, Feb 28, 2007
    #1
    1. Advertisements

  2. Dave Hewes

    Dave Hewes Guest

    That works great...Thanks

     
    Dave Hewes, Feb 28, 2007
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.