public bool ParticipantExists(string lpk) { RegcheckDataSet.event_presenceDataTable dt = epda.GetPersonEvent(lpk, (int)ds.events.Rows[0][ds.events.IdColumn], countyId); if (dt.Rows.Count > 0) { // exists return(true); } return(false); }