Here is a very simple way:
<asp:ButtonField ButtonType="Button" CommandName="Edit" Text="Edit" Visible="True"
CommandArgument="<%# Container.DataItemIndex %>" />
More Related Contents:
- Sql: Incorrect syntax near ‘(‘ [closed]
- How to find Control in TemplateField of GridView?
- Create thumbnail image
- How to implement full row selecting in GridView without select button?
- How can I export a GridView.DataSource to a datatable or dataset?
- how to find control in edit item template?
- GridView bound with Properties of nested class
- Get Row Index on Asp.net Rowcommand event
- How to hide a column (GridView) but still access its value?
- The data source does not support server-side data paging
- Full postback triggered by LinkButton inside GridView inside UpdatePanel
- GridView with merged cells
- Change cell color on different values – Gridview
- How to add TemplateField programmatically
- Looping through GridView rows and Checking Checkbox Control
- Making an entire row clickable in a gridview
- Count total rows of gridview with pagination
- How to reorder columns in gridview dynamically
- Reset scroll position after Async postback – ASP.NET
- How to pass values across the pages in ASP.net without using Session
- ASP.NET use SqlConnection connect MySQL
- Ajax method call
- What is the right way to populate a DropDownList from a database?
- How to implement reCaptcha for ASP.NET MVC? [closed]
- Does Dispose still get called when exception is thrown inside of a using statement?
- System.IO.File.Create locking a file
- how to generate a unique token which expires after 24 hours?
- How to get the output of a System.Diagnostics.Process?
- Printing from ASP.NET to a network printer
- Select multiple fields group by and sum