I am trying to populate a popup window with a value from a cell on a selected row. I am able to get the popup window to open, but the problem lies in that there are some rows with no ID associated, so I need to get the text in the cell by the index. How do I get the cell text into the popup? Here is my code-behind:
//Rows with N/A denote no unique ID colum
if (claimrow1 == "N/A")
{
GridDataItem item = (GridDataItem)e.Item;
TableCell raw_data = item["raw_data"];
string rawData = ((DataRowView)e.Item.DataItem)["raw_data"].ToString();
hlACPMSDetail.Visible = true;
hlACPMSDetail.Attributes["href"] = "#";
//hlACPMSDetail.Attributes["onclick"] = string.Format("return openClaimDetail('{0}');", e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["ACPMSID"]);
hlACPMSDetail.Attributes["onclick"] = string.Format("return openClaimDetail('{0}');", e.Item.ItemIndex); // e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["ACPMSID"]);
Thanks in advance
}
//Rows with N/A denote no unique ID colum
if (claimrow1 == "N/A")
{
GridDataItem item = (GridDataItem)e.Item;
TableCell raw_data = item["raw_data"];
string rawData = ((DataRowView)e.Item.DataItem)["raw_data"].ToString();
hlACPMSDetail.Visible = true;
hlACPMSDetail.Attributes["href"] = "#";
//hlACPMSDetail.Attributes["onclick"] = string.Format("return openClaimDetail('{0}');", e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["ACPMSID"]);
hlACPMSDetail.Attributes["onclick"] = string.Format("return openClaimDetail('{0}');", e.Item.ItemIndex); // e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["ACPMSID"]);
Thanks in advance
}