Hello,
I'm trying to create a dynamic report, I used a example I found here in this forum, and it worked fine while I had a object list. Now I have a list of dictionary (IQueryable<Dictionary<string, object>>) that I create base on business rules. The problem is I can't create the columns properly, I tried to bind the columns with "=Item[\"name_of_column\"]" and even with tried to inherit the dictionary class, creating a function to do the "Item[]" action, but did not work. Same problem with ExpandoObject, I can't access as dictionary, and I can't access the properties directly.
Actually it would be simpler to work with a Dictionary, how do I access the values based on the keys? Other option I tried and did not work was to create a User Function to get the value, but I can't access the current row object or the current row index.
I'm trying to create a dynamic report, I used a example I found here in this forum, and it worked fine while I had a object list. Now I have a list of dictionary (IQueryable<Dictionary<string, object>>) that I create base on business rules. The problem is I can't create the columns properly, I tried to bind the columns with "=Item[\"name_of_column\"]" and even with tried to inherit the dictionary class, creating a function to do the "Item[]" action, but did not work. Same problem with ExpandoObject, I can't access as dictionary, and I can't access the properties directly.
Actually it would be simpler to work with a Dictionary, how do I access the values based on the keys? Other option I tried and did not work was to create a User Function to get the value, but I can't access the current row object or the current row index.