Hi Guys,
apologies in advance if I missed something obvious and this is silly question :)
I'm using GroupBy on a single band and Grouping was working well until I canged the columns to from BoundDataField to TemplateDataField. Then I figured the grouping on the template columns does not work anymore...
Do I have to enforce the grouping in code? How do I go about using GroupBy with template columns?
Thanks in advance
Emil
I thought it will be better to re-phrase my question. My guess is that the Grouping down not work with template columns because they are not bound...
My question is: what is the best way to enable the grouping and filtering on a template column but do the actual work on a hidden databound column?
Any samples will be great...
thanks
Hello Emil,
As you mentioned in your reply the Grouping and Filtering of the Template columns is not available currently for the grid because the data in these columns is not bound and can be with many different types (like images, buttons etc.) that may not support these actions.
I am sending you a simple example that shows how you can group and filter the grid on a hidden column from Code-Behind.
Review the sample and let me know if you have further questions.