How to edit/delete list items through SPGridView
I'm trying to build a SharePoint webpart to display a Grid(SPGridView) with one template column containing checkbox and the remaining columns display data retrieved from a list in the website in which the webpart is deployed.So far so good.I could do this much.I managed to place checkboxes and the list was made Grid's datasource.
Now I want to add functionalities like edit/delete,ie.,if a checkbox is checked by the user,and a delete/edit button clicked the corresponding row in the Grid should be deleted/editable.The changes should reflect in the list too.
Please help me with the code ASAP....
The grid wud look similiar to the old inbox in YahooMail ...the same functionality .