|
-
Sep 3rd, 2010, 09:02 AM
#11
Re: datagridview add new row
 Originally Posted by new1
jmcilhinney i'm kinda beginner so tell me agin in simple way how can i adjust this code
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"
to not give me datagridview is bound
If you don't want the grid bound then don't bind it, i.e. don;t set the DataSource.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|