Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hey you guys I want to know how to edit, delete data within a datagrid control. I use datarow to insert and update data to the database. I use MSAccess 2003. Thank you!
Posted
Comments
Henry Minute 29-Dec-10 13:26pm    
Please edit your question to make it clear if this is a Widows Forms application and you really mean DataGridView, or it is a Web/ASP application.
Chiranthaka Sampath 30-Dec-10 10:07am    
It is a windows application. I use datarow instead of binding source.

1 solution

You don't delete data from the grid, you delete from the datasource bound to it.
 
Share this answer
 
Comments
Chiranthaka Sampath 30-Dec-10 10:09am    
No I use the data grid to view but I have seen that updating and deleting data from just clicking the data grid in VB 2003. But I do not to do that in vb 2005. Please help me guys!
[no name] 30-Dec-10 10:38am    
The datasource MUST be updated or deleted. What you have seen was an automation but the datasource IS THE ONLY place it can be deleted or updated. The datagrid is only a representation of the datasource.
Chiranthaka Sampath 18-Jan-11 22:26pm    
Thanks Mark. Then how can I edit the data source?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900