【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();

        }

 

posted @ 2007-10-31 17:08  李济宏(Amadeus)  阅读(146)  评论(0编辑  收藏  举报