i just wanted to modify, add and delete a gridview by using the button controls in ASP.Net . if so i also need the coding for that three in VB

Recommended Answers

All 3 Replies

There are a few articles on MSDN that will be able to help you out:

GridView Examples for ASP.NET 2.0: Editing the Underlying Data in a GridView: http://msdn.microsoft.com/en-us/library/ms972948.aspx
GridView Examples for ASP.NET 2.0: Deleting a GridView's Underlying Data: http://msdn.microsoft.com/en-us/library/ms972940.aspx

As far as inserting data into a GridView, that will be a little more tricky. Your best bet is to have a seperate area outside of the gridview to insert the data. There is a way to do it with the GridView, highlighted with this blog post: http://fredrik.nsquared2.com/viewpost.aspx?PostID=155. It is in C#, but there is only 7 lines of code and they can be easily translated to VB.

actually i'm using asp.net3.5. is the same procedure for 2.0 and 3.5

Yes.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.