i have this code to fill my datagrid with data from access database table
vb Code:
Dim CON As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source =" & Application.StartupPath & "\database.mdb") Dim sql As String = "select bot.trigger,bot.verse1 from bot" Dim data As New OleDbDataAdapter(sql, CON) Dim ds As New DataSet ds.Clear() data.Fill(ds, "bot") DataGridView1.DataSource = ds DataGridView1.DataMember = "bot"
now i want to add new row to the datagrid with value from textbox
i get error that datagridview is bound
how can i do this?




Reply With Quote