To perform one of these operations, set the Command Name property of a button to one of the values in the following table. Sets the Command Argument property of the button to "First", "Last", "Next", "Prev", or a page number to specify the type of paging operation to perform.
Raises the Page Index Changing and Page Index Changed events.
aspdotnet-suresh offers C#articles and tutorials,csharp dot net,articles and tutorials, VB.
Next Select your database and Set “Save Entity connection string in Web.config as” option true giving name Sample Entities.
For this situation, many developers use invisible columns (Hidden columns) in the gridview to identify that row.
We can achieve the same functionality using Datakeys.
event is raised when a button listed in the previous table is clicked, it is recommended that you use the events listed in the table for the operation.
A Grid View Command Event Args object is passed to the event-handling method, which enables you to determine the command name and command argument of the button clicked.