gridview真奇怪

以前的e.Item.ItemIndex没有了,微软居然把RowIndex放在e.CommandArgument中,
这样从按钮列的RowCommand事件中要得到GridView的PK要这么写
this.gv_Post.DataKeys[Convert.ToInt32(e.CommandArgument)].Value.ToString()
这个也太。。。。
MS处于什么原因这么设计???
原文地址:https://www.cnblogs.com/lovecherry/p/355661.html