Secondly if you want to include a custom field (some button or link) in the same column it’s not possible.


So what you need to do is store the data source (maybe in Session) and only bind rebind the data when you absolutely need to (Like during the Is Not Post Back) Do you understand?
Please post the code for your Page_Load method and the that handles your Update (your C# code) so we can have a better look at what's going on. Please give some references and/or details of how to. This wipes out the data provided by the user during editing (editing happens after the page load).
Ok let’s move on to Code behind what we have to do when user clicks Edit, Delete, Update and Cancel When we click on Edit the On Row Editing event will be fired.
You can see the C# code below will give the row number whatever you are editing by New Edit Index property.
Suppose if we are trying to hide primary key of our table, there is actually no need to hide.
In the above Snippet you are seeing a label in Item Template that means whenever we are showing Grid View to the user Label will be visible to the user.
Then again we have to call that Bind Grid Data () method to bind data for the textboxes.
You can leave a response, or trackback from your own site.
In this article, We will see how to use Grid View control in VB. We will use SQL Client data provider to provide database connectivity.