摘要:
protected void gvBookTaxis_RowDataBound(object sender, GridViewRowEventArgs e) { if (gvBookTaxis.PageIndex == 0)//判断是否是从第一页开始 { if (e.Row.RowIndex != -1) //判断GridView控件中是否有值 { int id = e.Row.RowIndex + 1;//将当前行的索引加上一赋值给变量id e.Row... 阅读全文