To create ItemTemplate and get its value:
string soldto = ((Label)gvShipment.Rows[i].FindControl("soldto")).Text;
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/15053694/viewspace-442365/ ,如需转载,请注明出处,否则将追究法律责任。