我有一个gridview
DataKeyNames="FilterId,ItemId"
field.我怎样才能获得两个字段中的每个值
gdv_RowEditing
事件。我试过了
protected void gdv_RowEditing(object sender, GridViewEditEventArgs e)
{
string a = gdv.DataKeys[e.NewEditIndex].Value[0].ToString();
string b = gdv.DataKeys[e.NewEditIndex].Value[1].ToString();
}
但它显示错误
'cannot apply indexing with [] to an expression of type object'