public double GetObservationRowHeight() { //need to figure out height depending on how many records into Obs if (Obs == null) { return(100); } var h = Obs.Count(); if (h > 0 && DisaggregatedSelected) { h = h + 1; } if (IndicatorTypeIsYesNo) { if (h == 1) { return(150.00); } else { return(h * 100.00); } } else if (IndicatorTypeIsCount) { if (h == 1) { return(150.00); } else { return(h * 100.00); } } else { if (h == 1) { return(250.00); } else { return(h * 250.00); } } }