要想使用DataKeys属性,必须先为GridView设置DataKeyNames 属性,设置值为你希望成为Key的字段名字,比如说设个ID之类的。这样在调用gvList0.DataKeys的时候才有值,你可以调试追踪看看,一目了然。PS:其实只有一个DataKeys就好了。取[j]就是分割字符串了,无意义 -- 除非你给它特殊的意义。MSDN:When the DataKeyNames property is set, the GridView control automatically creates a DataKey object for each row in the control. The DataKey o