Hi,
I am getting this run-time exception - 'System.Data.DataRowView' does not contain a property with the name 'OFFICE_PRIMARY_CONTACT' on the attached code below:
Does anybody know the reason for this ?
Thanks.
private void BuildEditableDDL()
{
DataSet ds = new DataSet();
SqlConnection connection = new SqlConnection(GetConnectionString());
SqlDataAdapter sqlDa = new SqlDataAdapter("Select display from display; Select DISTINCT USER_NAME from IT_CONTACT;Select DISTINCT USER_NAME from IT_CONTACT;", connection);
try
{
sqlDa.Fill(ds);
if (DvOfficeDetails.CurrentMode == DetailsViewMode.Edit)
{
// Bind the RELATIONSHIP
DropDownList edittxtDISPLAY = DvOfficeDetails.FindControl("edittxtDISPLAY") as DropDownList;
if (editt ...
Go to the complete details ...