Muliple Select Buttons in Gridview row

Posted on 2012-09-12
Last Modified: 2012-09-12

I have a gridview with a select button in it.

When the button is selected it sets the value of one of the cells in a session which all works fine.

What I want to do is add another select button which sets a different cell value to a session when clicked.

The problem is I already have 1  selectedindexchange event.

I'd like another one that sets a value in a session from a different row cell. Cant work it out

Protected Sub GridView2_SelectedIndexChanged(sender As Object, e As System.EventArgs) Handles GridView2.SelectedIndexChanged
        Dim row As GridViewRow = GridView2.SelectedRow

        Session("CanvassID") = row.Cells(0).Text

    End Sub

Open in new window

Question by:edjones1
    LVL 83

    Expert Comment

    Why not set both values in above event?

    Author Comment


    Thanks but the reason for not setting both values in the above event is that I want the second button to set a value and then redirect to a different page.
    LVL 83

    Accepted Solution


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
    The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now