There was a thread a short while back from someone trying to do similar - Gridview with CRUD Options (MySQL)