Welcome to the Blazor feedback portal. We’re happy you’re here! If you have feedback on how to improve the Blazor, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

2
Votes

An "industrial-strength" technique in modern C# is to use lambda statements instead of reflection.


One way to make the DataGrid more reliable is to specify column contents via lambda statements instead of passing field names that aren't compiler-verified.


For example, on 

https://blazor.syncfusion.com/documentation/datagrid/getting-started

<GridColumn Field="@nameof(Order.OrderID)" HeaderText="Order ID" TextAlign="TextAlign.Right" Width="120"></GridColumn>
Would turn into

<GridColumn Value="order => order.OrderId" HeaderText="Order ID" TextAlign="TextAlign.Right" Width="120"></GridColumn>

And on 

https://blazor.syncfusion.com/documentation/datagrid/data-binding

<GridColumn Field="CustomerID.Name" HeaderText="Customer Name" Width="120"></GridColumn>
Would turn into

<GridColumn Value="order => order.CustomerID.Name" HeaderText="Customer Name" Width="120"></GridColumn>