I found it difficult to title this appropriately, but here's my problem, first with some background info.
1. I created a DataTable, gave it some columns, and populated it with data.
2. I then used a DataView to sort that data.
3. Finally I bound the DataView to a custom control inheriting from RadGrid.
I want to filter the resulting RadGrid rows to divide it up into subsets, but no matter what I try for my FilterExpression, nothing works. After stepping through my code in debug mode, I noticed the RadGrid.Columns.Count = 0, even though I have results and columns with headers as I defined in my DataTable. I suspect this is why my FilterExpression is not working, though I also don't understand how it could have zero columns, yet the Columns are rendering just fine, headers and all. I was under the impression that by Binding my data, the RadGrid would automatically inherit the Columns and their names, but apparently not. How then can FilterExpression even work as it should?
Thoughts? Suggestions?
1. I created a DataTable, gave it some columns, and populated it with data.
2. I then used a DataView to sort that data.
3. Finally I bound the DataView to a custom control inheriting from RadGrid.
I want to filter the resulting RadGrid rows to divide it up into subsets, but no matter what I try for my FilterExpression, nothing works. After stepping through my code in debug mode, I noticed the RadGrid.Columns.Count = 0, even though I have results and columns with headers as I defined in my DataTable. I suspect this is why my FilterExpression is not working, though I also don't understand how it could have zero columns, yet the Columns are rendering just fine, headers and all. I was under the impression that by Binding my data, the RadGrid would automatically inherit the Columns and their names, but apparently not. How then can FilterExpression even work as it should?
Thoughts? Suggestions?