private void LoadNominees() { DataTable dtCustomerAssociates = new DataTable(); DataTable dtNewCustomerAssociate = new DataTable(); DataRow drCustomerAssociates; if (ddlCustomerISAAccount.SelectedIndex != 0) { dsCustomerAssociates = customerAccountBo.GetCustomerISAAssociatedRel(int.Parse(ddlCustomerISAAccount.SelectedValue)); dtCustomerAssociates = dsCustomerAssociates.Tables[0]; dtNewCustomerAssociate.Columns.Add("MemberCustomerId"); dtNewCustomerAssociate.Columns.Add("AssociationId"); dtNewCustomerAssociate.Columns.Add("Name"); dtNewCustomerAssociate.Columns.Add("Relationship"); foreach (DataRow dr in dtCustomerAssociates.Rows) { drCustomerAssociates = dtNewCustomerAssociate.NewRow(); drCustomerAssociates["MemberCustomerId"] = dr["C_AssociateCustomerId"].ToString(); drCustomerAssociates["AssociationId"] = dr["CA_AssociationId"].ToString(); drCustomerAssociates["Name"] = dr["AssociateName"].ToString(); drCustomerAssociates["Relationship"] = dr["XR_Relationship"].ToString(); dtNewCustomerAssociate.Rows.Add(drCustomerAssociates); } if (dtNewCustomerAssociate != null) { gvNominees.DataSource = dtNewCustomerAssociate; gvNominees.DataBind(); gvNominees.Visible = true; tdNominees.Visible = true; } if (dsCustomerAssociates.Tables[1] != null) { gvJointHoldersList.DataSource = dsCustomerAssociates.Tables[1]; gvJointHoldersList.DataBind(); gvJointHoldersList.Visible = true; pnlJointholders.Visible = true; } } }