Вот код:
Public dsMPMs As New DataSet()
Public accessConn As New OleDb.OleDbConnection(connString)
Public daCGroup As OleDb.OleDbDataAdapter
Public cmdGetCGroup As OleDb.OleDbCommand
accessConn.Open()
cmdGetCGroup = New OleDb.OleDbCommand("GetMyKey", accessConn)
cmdGetCGroup.CommandType = CommandType.StoredProcedure
daCGroup = New OleDb.OleDbDataAdapter(cmdGetCGroup)
daCGroup.MissingSchemaAction = MissingSchemaAction.AddWithKey
daCGroup.Fill(dsMPMs, "MyKey")
MPMTreeView = dsMPMs.Tables("MyKey").DefaultView
txtName.DataBindings.Add("Text", MPMTreeView, "name")
txtKey.DataBindings.Add("Text", MPMTreeView, "key")
Вопрос:
Как мне сохранить изменения, вносимые в txtName и txtKey ?
Ответить
|