delete selected gridview row from datatable

manared

Well-known member
Joined
Jun 1, 2006
Messages
84
Programming Experience
1-3
I have a web form in vb.net 2005. I have a gridview that is populated from a datatable. In the gridview, I want the user to select a row to delete and then delete that row from the datatable, and then rebind the gridview. I'm having a hard time figuring out which row is selected in the gridview and then comparing it to the datatable. Does anyone know how to delete a row from the datatable, therefore deleting the row from the gridview? Thank you and let me know if any code is needed.
 
Back
Top