Some columns in my grid are being added dynamically; their count and names come from a collection. All items in the grid have the same dynamic columns.
My data object looks like this:
/// Holds a value for a single dynamic column cell
int DynamicColumnDefinitionId; // points to an item in a global collection that defines the dynamic columns for the whole grid.
The resulting grid could have these columns:
| ID | Name | DynamicColummn1 | DynamicColummn2 | ... |
How can I sort by one of the dynamic columns? Can I use a sort expression like "DynamicColumn[i]" ?