Quite a while back I wrote an article titled “Dynamically Templated GridView with Edit, Delete and Insert Options” on aspalliance.com in which I provided complete solution to build a GridView with template fields generated at run time with in-place Insert, Delete and Edit operations. I also gave complete description to implement ITemplate interface effectively. Before writing this article I googled a lot for such a solution for my university project but I could not find any, then I had to go for my own form scratch. When I came up with this and used it in my project successfully I thought to share it with complete description.

During this period where I received lot of appreciation mails for providing this ready to use piece of functionality, I also got many mails for its VB.NET version but unfortunately I could not find time to do so. Now I have converted it into VB.NET and have also done small refactoring for ADO.NET logic. You can download both versions from following links.

i changed byval e as to imageClickEventArgs from EventArgs on edit_button_click. I was getting "method does not have the same signature as delegate 'Delegate sub ImageClickEventHandler'. I have your vb code. When i click on the edit button or insert button the edit_button_Click event or insert_button_Click event are not firing. please help