[.NET] 如何update 從 radgrid中的值

看板Visual_Basic作者 (陌生的環境....)時間15年前 (2010/12/08 09:53), 編輯推噓1(104)
留言5則, 3人參與, 最新討論串1/1
大家好, 我想請問的是, 如何update 從 radgrid中的值, 我有勾選他的基本功能-edit 請問還需要做其他設定嗎? 目前我是直接寫程式, 但讀不到值, 程式碼如下: Protected Sub UpdateCommand(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles UpdateCommand Dim SQL As String txtSQL = "update food set content = '" & e.Item.Cells.Item(5).Text & "'" executeSqlQuery(DB, txtSQL) End Sub 請問e.Item.Cells.Item(5).Text需改為什麼才能順利更新? 謝謝 >"< -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 192.83.181.88

12/08 10:03, , 1F
radGrid or DataGridView?
12/08 10:03, 1F

12/08 10:04, , 2F
也許用e.Item(idx).Cells(5).Value = "SomeText"
12/08 10:04, 2F

12/08 11:55, , 3F
看他event的type,好像不是標準的datagridview.
12/08 11:55, 3F

12/08 12:50, , 4F
喔,原來是Telerik的元件,那就自行K手冊了唄
12/08 12:50, 4F

12/08 13:55, , 5F
沒錯…是Telerik元件,謝謝兩位
12/08 13:55, 5F
文章代碼(AID): #1C_kKaGA (Visual_Basic)