[.NET] 如何選取GataGrid中的項目放入資料庫中

看板Visual_Basic作者 (bird)時間19年前 (2006/10/01 11:21), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/3 (看更多)
小弟遇到了一個問題,就是要怎麼把在DataGrid中選取的內容(文字),放入資料庫中 的資料表? 以下是把在DataGrid中選取的內容放入SomedayMaybe這個資料表 的程式片段,我的問題是 myRow("內容") 的DataGrid的屬性要如 何表示,會的人可以提供我解決的方法嗎,謝謝!^-^ ﰡ Dim dt As DataTable = ds.Tables("SomedayMaybe") Dim myRow As DataRow = dt3.NewRow myRow("內容") = "DataGrid...???????" dt3.Rows.Add(myRow) -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 219.71.106.216
文章代碼(AID): #157pGwQf (Visual_Basic)
文章代碼(AID): #157pGwQf (Visual_Basic)