Dear support,
I'm trying to show hierarchical data within the xamlDataGrid. Every "level/tier" contains data/colums of the same type. Therefore I only would like to show one Header at the very top of the grid.
Unfortunetely the defaultsetting is, that every level/subgroup will repeat the header. I'm not able to find a solution in your help or showcase. There was a similar question in 2008 in which you pointed out, that this is not supported by the grid. But I hope that you fixed this during the last two years.
Guess I would like to show a kind of Treeview with a header. But just one header.
Thanks a lot in advance. I hope you will have a positive reply.
Hello,
I believe this is the same issue as the one here.
Hi Alex,
sorry, didn't saw this thread. Yes, this is exactly what I was looking for.
Seems to be a lot of code for such a "simple" matter. :)
Before, we were using the Videosoft flexGrid, but without databinding. So I created a few simple columns and added each row by "addRow-method". I will check out, whether a databinding for this hierarchical structure would be the better solution,or manual inserting rows might be more helpful. Hm...by the way...do you have a sample/link of howto add records totally manual? The only samples I found were to fill UnboundFields within the event "InitializeRecord". But it seems that this event will only be fired if the grid is databound.
sorry for this "stupid" question, but I'm just starting with your grid. And there are tons of propertiy and possibilites with it, so that sometime you don't see the wood for the trees. :-)
Inserting or databinding should make no difference with the XamDataGrid. It will reflect the items as they are in the underlying collection - for example ObservableCollection or BindingList.
The AddNewRecord functionality of the XamDataGrid is exposed through the IBindingList interface, so if you want to be available to you, you have to use a collection that implements it (BindingList,DataView) or wrap your collection in a collection view.
This may seems as a lot of code, because the XamDataGrid is not exactly designed to work/look that way, so you have to tweak it. However, we would appreciate if you give us your feedback on this and request this as a feature - another view of the XamDataPresenter resembling a TreeView.
As regards to the properties, they may seem a lot, but they are well structured. You have two main types of properties - one for the FieldLayouts - FieldLayoutSettings and one for the Fields - FieldSettings.
Both of there types of properties are exposed on a global level (through the FieldlayoutSettings and FieldSettings properties of the XamdataGrid) and locally (through the Fieldlayout.Settings and Field.Settings).