Set the current value of gridview DDL on EditItemTemplate

后端 未结 2 1175
刺人心
刺人心 2021-01-17 04:30

How do I set the selected value in a gridview dropdownlist to what is in the current record like I currently do for a text box.

I am hoping the user can look at the

2条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-17 04:54

    I ended up using:

     SelectedValue='<%# Bind("myID") %>' 
    

    to display the current record in the ddl.

提交回复
热议问题