This question is locked. New answers and comments are not allowed.
I want to bind a column depending on a condition i did
columns.Bound(p =>
{
if (Helper.Language.StartsWith("en"))
{
p.Patient.FirstNameEnglish;
}
else
{
p.Patient.FirstName;
}
})
but it gives this error "Cannot convert lambda expression to type 'string' because it is not a delegate type"
columns.Bound(p =>
{
if (Helper.Language.StartsWith("en"))
{
p.Patient.FirstNameEnglish;
}
else
{
p.Patient.FirstName;
}
})
but it gives this error "Cannot convert lambda expression to type 'string' because it is not a delegate type"