作者likedoudou (陌生的环境....)
看板Database
标题[SQL ] 如何 update从 radgrid 中显示的值
时间Tue Dec 7 18:16:07 2010
大家好,
我想请问的是,
如何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
1F:→ grence:到 Visual_Basic版发问可能适合一点 12/07 23:41