索引超出范围。必须为非负值并小于集合大小。参数名: index 
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.ArgumentOutOfRangeException: 索引超出范围。必须为非负值并小于集合大小。参数名: index源错误: 
行 161:
行 162:                      
行 163: string keyID= Dgd_Supplier.DataKeys[thisitem.ItemIndex].ToString(); 出错的地方
行 164:                  string strDel=string.Format("delete from Supplier where id='{0}'",keyID);
行 165: SqlCommand cmdDel=new SqlCommand(strDel,con);
 源文件: c:\inetpub\wwwroot\采购管理\supplier_modify.aspx.cs    行: 163