關(guān)于gridview 中dropdownlist 默認值設(shè)定的問題,如果gridview 中我設(shè)置在模板列中的dropdownlist不是幫定在數(shù)據(jù)源上的是靜態(tài)的,我該如何設(shè)置默認值,前提是我的默認值是來自幫定在gridview的數(shù)據(jù)源的.
2 回答

絕地?zé)o雙
TA貢獻1946條經(jīng)驗 獲得超4個贊
SelectIndex='<%# Eval("YourIndex") %>'
OR
SelectValue='<%# Eval("YourValue") %>' <!-- This one better? -->
- 2 回答
- 0 關(guān)注
- 607 瀏覽
添加回答
舉報
0/150
提交
取消