Re: [問題] 如何將RadioButton放入GridView裡

看板C_Sharp (C#)作者 (Free Myself?!)時間13年前 (2011/12/02 13:59), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/2 (看更多)
以下連結來自【topcat姍舞之間的極度凝聚】 http://www.dotblogs.com.tw/topcat/archive/2008/07/04/4436.aspx 這篇文章是將Dropdownlist放入Gridview中,放在edititem template 參考這篇的作法,改放在Item template 中,應該就符合的需求。 另外,要取值的話 string value = ((gridview1.rows[i].findcontrol("RadioButtonList")) as RadioButtonList).SelectedValue ※ 引述《GentleGaGa ()》之銘言: : 請教各位, : 想做一個問卷, : 目前Web design是想要將RadioButton(或RadioButtonList) : 放入GridView裡 : 目前設計如下: : | | 非常滿意| 滿意 | 沒意見 | 不滿意 | : -------------------------------------------------------- : 桌子整潔 : 環境問題 椅子整潔 : -------------------------------------------------------- : A : 舒適度 B : -------------------------------------------------------- : (Column 1跟2 是由資料庫取出) : 請問可以將RadioButton/RadioButtonList放進去GridView裡嗎?? : 在GridView_DataRowBound裡控制? : 感謝賜教!!! -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 210.240.230.215
文章代碼(AID): #1Es6bA-c (C_Sharp)
文章代碼(AID): #1Es6bA-c (C_Sharp)