Hi,
in this thread (Bindig to a Dictionary) you gave an example on how to use an object containing a dictionary as data source for a gridview. I adjusted this example for a current project and it worked very well.
In particular,
- I add not only Objects of Type String but also of Type DateTime and Double to the Dictionaries "Attributes" in class LayerData
- further I set as DataType String, Double or DataTime for each GridViewDataColumn in the grid
These extensions allowed me to do convenient formatting of the output. Further I could implement sorting by writting my on code in an EventHandler of the Sorting event.
Now, where I am stuck is grouping. Whenever I drag a group header onto the grouping panel I get an exception.
Could you please provide me with a hint how custom grouping could be done in this case?
Thanks,
Stefan
in this thread (Bindig to a Dictionary) you gave an example on how to use an object containing a dictionary as data source for a gridview. I adjusted this example for a current project and it worked very well.
In particular,
- I add not only Objects of Type String but also of Type DateTime and Double to the Dictionaries "Attributes" in class LayerData
- further I set as DataType String, Double or DataTime for each GridViewDataColumn in the grid
These extensions allowed me to do convenient formatting of the output. Further I could implement sorting by writting my on code in an EventHandler of the Sorting event.
Now, where I am stuck is grouping. Whenever I drag a group header onto the grouping panel I get an exception.
Could you please provide me with a hint how custom grouping could be done in this case?
Thanks,
Stefan