dropdownlistbox in gridview RRS feed

  • Question

  • Hi,

    I am retrieving data from database (in the form of a dataset ), dataset is having a table which holds 2 columns SNo and Shift.

    I am binding this dataset to GridView. The first column is displayed as  BoundField and the second column is displayed as DropDownList using ItemTemplate.

    The user can be able to select different values in the gridview.

    Can someone tell me how to detect the altered values in the dropdown list for all the rows ?

    Friday, January 30, 2009 12:11 AM


  • What type of GridView are you using? a Web one or a Winform one? If you are using Web form use the SelectedIndexChanged event. If you are using a WinForms GridView, its likely you should use a selectionChanged event.

    I am also going to move this request to a Winforms databinding, as the question is not really a dataset question.


    Chris Robinson

    PM DataSet

    This posting is provided "AS IS" with no warranties, and confers no rights.
    Friday, January 30, 2009 11:51 PM