【Vegas原创】GridView前台绑定HyperLink参数&自动编号

    <asp:HyperLinkField DataTextField="trano"  DataNavigateUrlFormatString="dl_type.aspx?trano={0}"  DataNavigateUrlFields="trano" HeaderText="申请单编号" />




Rowdatabound实践中:

 if (e.Row.RowIndex != -1)
        
{
            
int id = e.Row.RowIndex + 1;
            e.Row.Cells[
0].Text = id.ToString();

        }
原文地址:https://www.cnblogs.com/amadeuslee/p/3744604.html