我正在使用下面的代码来获取行索引
protected void gvESAPending_RowCommand(object sender, GridViewCommandEventArgs e)
{
try
{
lblMsg.Text = "";
int index = Convert.ToInt32(e.CommandArgument);
GridViewRow row = gvESAPending.Rows[index]; // Here incorrect format error is coming
}
}
但是索引值是0。这里有什么问题?
Aspx 代码
'>'>