can someone clear me up on a few things. Ive search for answers and the more I read and think I have it, there comes something that gets me *** backward. If I could get a deffinate answer on a few of these things it would just be superb.
1. is a datagrid same thing as datagridview?
2. what is the difference between dgv.datasource and dgv.databinding
for the next question I am refering to this snip I found in VB2005 beta 2 help:
Create a command builder to generate SQL update, insert, and
delete commands based on selectCommand. These are used to
update the database.
Dim commandBuilder As New SqlCommandBuilder(Me.dataAdapter)
Populate a new data table and bind it to the BindingSource.
Dim table As New DataTable()
table.Locale = System.Globalization.CultureInfo.InvariantCulture
Me.dataAdapter.Fill(table)
Me.bindingSource1.DataSource = table
That part in bold shocked me. Is it possible for VB to monitor changes made to the DGV on its own and construct the sql UPDATE command to update only the value(s) that the user changed??! Ive been tracking changes with code and then writing code to check what was changed and send the UPDATEs if needed.
btw I use mySQL and the mysql VB connector.
Excuse me for any pain I cause with asking about DGVs. I know there are alot of topics on them and the answer may already be out there but I just cant find it. This is also my first post to any programming forum, so I hope once you all make me a VB.god I can return the favor.
1. is a datagrid same thing as datagridview?
2. what is the difference between dgv.datasource and dgv.databinding
for the next question I am refering to this snip I found in VB2005 beta 2 help:
Create a command builder to generate SQL update, insert, and
delete commands based on selectCommand. These are used to
update the database.
Dim commandBuilder As New SqlCommandBuilder(Me.dataAdapter)
Populate a new data table and bind it to the BindingSource.
Dim table As New DataTable()
table.Locale = System.Globalization.CultureInfo.InvariantCulture
Me.dataAdapter.Fill(table)
Me.bindingSource1.DataSource = table
That part in bold shocked me. Is it possible for VB to monitor changes made to the DGV on its own and construct the sql UPDATE command to update only the value(s) that the user changed??! Ive been tracking changes with code and then writing code to check what was changed and send the UPDATEs if needed.
btw I use mySQL and the mysql VB connector.
Excuse me for any pain I cause with asking about DGVs. I know there are alot of topics on them and the answer may already be out there but I just cant find it. This is also my first post to any programming forum, so I hope once you all make me a VB.god I can return the favor.