Binding to a Nested Object in Blazor DataGrid
New DiscussionHow would I bind a datagrid column to a nested object?
For example:
<TextColumn IsEditable = “false” Field=”AssignedSeverity.Name” HeaderText=”Severity” Width=”@(“*>120″)” />
//FRAGMENT OF CLASS BELOW
public class Request
{
private int _id = -1;
private string _problem = string.Empty;
private string _solution = string.Empty;
private Severity _assignedSeverity = new Severity();
public int Id { get => _id; set => _id = value; }
public string Problem { get => _problem; set => _problem = value; }
public string Solution { get => _solution; set => _solution = value; }
public Severity AssignedSeverity { get => _assignedSeverity; set => _assignedSeverity = value; }
Sign In
to post a reply
Replies
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Favorites
0 Replies
1 Created On
Dec 16, 2021 Last Post
3 years, 8 months ago