I have a grid that has a column that has its value set in the ItemDataBound event. This is because I'm binding to a complex object model and I have to perform some business logic in the itemdatabound to determine the column value.
I want to group on this column but I get an error when setting the groupbyexpression to the UniqueName of the column. I'm presuming this is because the groupbyexpressions is looking for a field in the datasource with the field name rather than using the columns in the grid.
Is there a way to get the grid to group by the values in the grid column rather than the values in the datasource?
I want to group on this column but I get an error when setting the groupbyexpression to the UniqueName of the column. I'm presuming this is because the groupbyexpressions is looking for a field in the datasource with the field name rather than using the columns in the grid.
Is there a way to get the grid to group by the values in the grid column rather than the values in the datasource?