i just figured out how to refresh the datagrid.
i just need to put this code
thanx 4 ur helps anyway.
but i still need to figure out how to delete the data by selecting a row in datagrid then click delete button
thanx! i'll try that..
this is what i wanna do:
when the users want to delete a record from the database, they can just select the row n then click delete button.
n oh yes i need to know how to update/refresh the datagrid too!
pls plss help me!
ive tried so many ways but it doesnt work..
Im new to vb.net. Im trying to set a delete statement to remove a company from a SQL server database. The user can select the line in the datagrid and then choose delete button.
This code deletes the whole company in the database. Can anyone help me?