Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
Blazor datagrid use of dynamic list using ExpandoObject

I am trying to databind the following dynamic list to the datagrid. Is this possible? I am converting a datatble to a dynamic list using ExpandoObject.

Kind regards,

Evert van Ballegooie

public static List<dynamic> ListFromDataTable(DataTable dataTable)
List<dynamic> tableList = new List<dynamic>();
foreach (DataRow row in dataTable.Rows)
var expandoDict = new ExpandoObject() as IDictionary<String, Object>;
foreach (DataColumn col in dataTable.Columns)
expandoDict.Add(col.ToString(), row[col.ColumnName]);
return tableList;

  • 28785
    Offline posted
    Thank you for contacting Infragistics. Using ExpandoObjects with our Blazor tools is considered to be a new product idea.
    You can suggest new product ideas for future versions (or vote for existing ones) at <>. 
    Submitting your idea will allow you to communicate directly with our product management team, track the progress of your idea at any time, see how many votes it got, read comments from other developers in the community, and see if someone from the product team has additional questions for you. 
    Remember when submitting your idea to explain the context in which a feature would be used and why it is needed as well as anything that would prevent you from accomplishing this today. You can even add screenshots to build a stronger case. Remember that for your suggestion to be successful, you need other members of the community to vote for it.   
Reply Children
No Data