Having trouble understanding Datagrid-Dynamic example

Hi, i'm having trouble understand the dynamic datagrid example.

In specific this bit:

    public string GetColumnPropertyExpression(string name, Type type)
        var expression = $@"it[""{name}""].ToString()";
        return type == typeof(int) ? $"int.Parse({expression})" : expression;

What property is this referring to, and what is this 'it' which i can only assume is a dictionairy but doesnt appear anywhere in the code.

The DataGrid in this demo is bound to IEnumerable<Dictionary<string,object>>:

You can access such data source item values using indexer by name (["SomeName"]) and since our DataGrid is using internally Dynamic LINQ the name of the item instance is it.

1 Like

Ah thank you that makes sense now!