这是我正在使用的代码,但项目索引现在是它跳转的正确行索引,所以我认为我的代码错误。欢迎任何帮助!谢谢
protected void FailureRadGrid_ItemCommand(object sender, GridCommandEventArgs e)
{
if (e.CommandName == "RowClick" && e.Item is GridDataItem)
{
FailureSourcePanel.Visible = true;
EmployeeInputPanel.Visible = true;
GridDataItem item = (GridDataItem)FailureRadGrid.MasterTableView.Items[e.Item.];
FailureDescriptTextBox.Text = item["FullDescrip"].Text;
FailureCouponID.Text = item["CouponID"].Text;
FailureProductTextBox.Text = item["Product"].Text;
FailureUnitLabel.Text = item["Unit"].Text;
FailureValueTextBox.Text = item["Value"].Text;
}
}