Click here to Skip to main content
16,021,115 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi...
Im using datagridview in my windows application. Im showing 3 columns as from,To,Value in grid. I want to know how to edit or delete rows at runtime. Also once i select a value to edit,i need to know how to change grid cell to textbox....guide me soon
Posted

Refer some links, which will guide you how to use text box in grid and also edit and save functionality in grid.
Insert, Update, Delete with DataGridView Control in C# (Windows Application)[^]
Add, Edit, and Delete in DataGridView[^]

Also refer some list of articles on CodeProject Search[^]
 
Share this answer
 
As per your question, I am assuming that you need to understand how to perform add, edit and delete operations on DataGridView control. Below articles will provide you heads up:
Add, Edit, and Delete in DataGridView with Paging[^]
insert-update-delete-with-datagridview-control-in-c-windows-application[^]
 
Share this answer
 
Comments
Priyaaammu 4-Jul-12 0:51am    
thanks for your reply...but my task is to update or delete rows not by using separate buttons..i want to keep edit and delete buttons along with grid as like gridview

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