Hi all,
In my grid I have a column with DataField = "Topic". Because I'm using a list of objects and the object's topic is retrieved via a method call I use the ItemDataBound event to fill this field.
Now I would like to group by this topic so I do
Is this correct?
Is there a way of grouping on a column which gets it's value in the ItemDataBound event?
Without adding the GroupByExpression the grid shows OK, including the "Topic" column.
Thanks,
Vincent.
In my grid I have a column with DataField = "Topic". Because I'm using a list of objects and the object's topic is retrieved via a method call I use the ItemDataBound event to fill this field.
Now I would like to group by this topic so I do
rgLog.MasterTableView.GroupByExpressions.Add("Topic [Topic] Group By Topic");
This generates an error saying "Field Topic not found in the source table. Please check the expression syntax". This had me puzzled for a few hours. I think the error occurs because it can not find the property "Topic" in my object.Is this correct?
Is there a way of grouping on a column which gets it's value in the ItemDataBound event?
Without adding the GroupByExpression the grid shows OK, including the "Topic" column.
Thanks,
Vincent.