【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  阅读(160)  评论(0)    收藏  举报