update the record on grid view click

Posted by Subhadip under C# on 12/13/2010 | Points: 10 | Views : 1254 | Status : [Member] | Replies : 1
suppose i have enter the record of student in a form and display the record on a grid view.now i want to update the record.but upde to be done when i will click on grid view for a particular record which is to be updated so that on clicking the record the form will be loaded and updateed


Posted by: T.saravanan on: 12/14/2010 [Member] [MVP] Silver | Points: 25

Hi Subhadip,

I think you are working in Windows Application.My Suggestion is using DataGridViewCellEndEdit event in your form.When you can edit the data in any cell,in leave time the event will be fire and that case give your condition in that event.

Note: This event is fire in all cell leave,if you want particular column means just check column index in that CellEndEdit event.

Try this way....
Cheers :)


Subhadip, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response