locked
Dropdown list in Gridview RRS feed

  • Question

  • Respect to all, I have a database ms-access.I have a gridview which consists of 2 dropdownlists,I have edit and delete buttons. when i click on edit button,that 2 dropdownlists should appear and I should get the data from database columns. Here I have to update the data if required. Can any one help me...... I have done in source view with the help of list items---It is executing but i want to get the data from database.
    Saturday, August 6, 2011 8:49 AM

All replies

  • Hi,Srikanth_Pandu.I hope this can help you if you uing the visual studio development environment.

    firstly,change the dropdownlist control 1&2's attribute 'visiable'='false',

    secondly,set the dropdownlist 1&2 attribute 'datasource',this may refer SQL connection or command,alse ADO.

    thirdly,associate the ButtonCLick event with Dropdownlist display event,and in the ButtonClick reponse coding area,rebound the Dropdownlist.so the button click event will inspire the DropDownlist Update event.  

     

    PanZhang

    Sunday, August 14, 2011 1:05 AM