I have a model with a method.
For simplicity, let's say it's List<Person>.
Person has
First
Mid
Last
Full(){
Last + ", " + First + " " + Mid
}
When I try to bind the column:
<GridColumn Field=@nameof(People.Full()) HeaderText="Grower" TextAlign="TextAlign.Left" Width="250"></GridColumn>
it gives an error.
Then I tried this in the model:
public string FullComputed => Full();
and
<GridColumn Field=@nameof(People.FullComputer) HeaderText="Grower" TextAlign="TextAlign.Left"
Width="250"></GridColumn>
That just shows as blank.
How can I accomplish this?