I have matched this almost exactly, 2 issues is my ID or primary ID I need to find the record is PAR_PARTID (not visible in the grid) and the field to attach the popup is R1_PartNumber (unique id).
Exception Details:System.InvalidCastException: Unable to cast object of type'System.Data.Common.DataRecordInternal' to type'System.Data.DataRowView'.
Source Error:
my code other than using the PAR_PartID instead is exactly the same as yours, but I get the following error.
Unable to cast object of type 'System.Data.Common.DataRecordInternal' totype 'System.Data.DataRowView'.
Description:An unhandled exception occurred during the execution of the current webrequest. Please review the stack trace for more information about the error andwhere it originated in the code.Exception Details:System.InvalidCastException: Unable to cast object of type'System.Data.Common.DataRecordInternal' to type'System.Data.DataRowView'.
Source Error:
|