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
this is my code for refresh button.
there is an error which is violating primary key ...........
i dunno what's wrong as i didnt put the same value as what is already in the database
thanx
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..
can u show me how? i mean can u provide a sample?
im lost :confused:
btw, actually im trying to delete a row in the datagrid
pls someone help me with this
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?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.