Here logic is to check which button is clicked by user is it insert button or update button.
If its insert it will perform insert action which is “if” block and if its update then “else” block will be executed.
aspdotnet-suresh offers C#articles and tutorials,csharp dot net,articles and tutorials, VB.
is the most basic and important control to display data in dot net based application.
So Grid View will put the appropriate row into the Edit Mode by assigning row number to its Edit Index property. You can follow any responses to this entry through the RSS 2.0 feed.This was my first foray into this part of the Grid View’s functionality, since I haven’t really had to develop anything using it since the switch to 2.0, as everything in Data Grids still functioned fine. The Row Updating event is where it gets tricky, since pulling values is not necessarily intuitive. That’s where you come in 🙂 If you’re interested in joining the discussion to post your own problems, fixes, etc.With a little bit of research, a lot bit of patience, and some help from the internet community, I was able to solve all my issues, and pretty elegantly at that. You can’t do something like Dim name As Hyper Link Dim inv As Text Box name = CType(Grid View1. in an actual post, just email me or comment somewhere and we’ll talk about it.I have been using this control from very long time in many of my projects it may be windows or web based applications.Many of you will also agree that this is “bread and butter” of any applications.If we use proper command names for the buttons like “EDIT”, “DELETE”, “UPDATE”, “CANCEL” these will also trigger the appropriate Grid View Events.