This post shows you how to insert and update rows in your database directly from an asp.net Gridview using C#.