Trigger CommandName from DropDownList in GridView

Discussion in 'ASP .Net' started by Irfi, Dec 15, 2005.

  1. Irfi

    Irfi Guest

    Alright, here’s what I want to do. I have a GridView with columns say EmployeeID, FirstName, LastName, and Department. Now, I want to add an additional column with the DropDownList. The list has the options of

    Select
    Edit
    Delete ( I know how to do this one)

    Now, if the user selects “Edit” or “Select”, I want that row to open up in a DetailsView either as read only or in editable mode depending on what the user selected.

    I am able to call the select commandname using a linkbutton. However, how do I call it using a dropdownlist? Also, how do I call it directly in editable form in a DetailsView from the dropdownlist?

    Thanks in advance for all the help and guidance.
     
    Irfi, Dec 15, 2005
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. John Blair

    asp:linkbutton - commandname behaviour

    John Blair, Dec 30, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    4,974
    John Blair
    Dec 30, 2004
  2. Irfi
    Replies:
    0
    Views:
    630
  3. =?Utf-8?B?RGFiYmxlcg==?=

    use Formview cancel commandname to return to GridView Page?

    =?Utf-8?B?RGFiYmxlcg==?=, Mar 20, 2006, in forum: ASP .Net
    Replies:
    4
    Views:
    5,209
    =?Utf-8?B?RGFiYmxlcg==?=
    Mar 20, 2006
  4. =?Utf-8?B?Tkg=?=

    gridview and dropdownlist and commandName

    =?Utf-8?B?Tkg=?=, Nov 8, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    943
    =?Utf-8?B?Tkg=?=
    Nov 8, 2006
  5. dvanderwel
    Replies:
    3
    Views:
    684
    Coskun SUNALI [MVP]
    Feb 7, 2008
Loading...

Share This Page