私は DataGridView をフォームに追加し、以下のコードで列 1 に表示させました。
Imports System.Collections.Generic
Imports System.Linq
Imports System.Data.Objects
Imports System.Data.SqlClient
Public Class editbusinesstype
Dim MyDb As New TillRoll.Group_Business_Type
Private Sub editbusinesstype_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim MyDb As New TillRollDataDataContext(MyConnStr)
Dim BusinessType = MyDb.Group_Business_Types
DataGridView1.DataSource = BusinessType
End Sub
Private Sub DataGridView1_CellContentClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellContentClick
End Sub
End Class
私の質問は、グリッドに読み込まれ、フィールドを編集したときに、閉じた後にデータベースに保存できる方法があるかどうかです。
ありがとう
ベン