private static object getCurrentCellValue(IEnumerable<CellData> row, string property)
{
var cellValue = row.FirstOrDefault(x => x.PropertyName == property);
if (cellValue == null)
{
throw new InvalidOperationException(string.Format(CultureInfo.InvariantCulture, "Please include {0} property in PdfColumnsDefinitions too.", property));
}
var currentCellValue = cellValue.PropertyValue;
return currentCellValue;
}