Skip to content

Infragistics Community Forum / Web / Ignite UI for Blazor / Blazor datagrid use of dynamic list using ExpandoObject

Blazor datagrid use of dynamic list using ExpandoObject

New Discussion
Evert van Ballegooie
Evert van Ballegooie asked on May 12, 2023 2:38 PM

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]);
}
tableList.Add(expandoDict);
}
return tableList;
}

Sign In to post a reply

Replies

  • 0
    Michael DiFilippo
    Michael DiFilippo answered on Apr 28, 2021 6:51 PM
    Hello, 
     
    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.   
    • 0
      Michael DiFilippo
      Michael DiFilippo answered on May 12, 2023 2:38 PM

      Our new home for submitting feature requests is on github
      github.com/…/issues

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Evert van Ballegooie
Favorites
0
Replies
2
Created On
May 12, 2023
Last Post
3 years, 4 months ago

Suggested Discussions

Tags

No tags

Created on

May 12, 2023 2:38 PM

Last activity on

May 12, 2023 2:38 PM