My grid is bound to an ObservableCollection that has 2 levels of data in it.
the grid is displaying properly but twhen I clink on the record Selector the event never fires.
I need to know which row is selected/Active to send back info to my ViewModel.
Is there a way to trun off the NestedDatadisplay (like the WPF grid). this would be Ideal but I can't find the corresponding property to do so.
Hi,
Are you listening to the RowSelectorClicked event? This event fires on all levels.
There is also the ActiveCellChanged event which you can use, as the active cell can be changed by a user clicking on a cell or using the keyboard.
As for your other question. What do you mean by Turn of the NestedDataDisplay? You don't want a hierarchy?
-SteveZ
Yes I am listiening to the row selector clicked Event.
the ActiveCell changed event does fire but if I click on the row selector and it expands the 2nd level of data the active cell changed event does not fire so I hacve the wrong item as being "my selected Item" from the grid. In the WPF version of the Xam Grid you can turn off the displayed hieracrchy and only display the top level. We wnat to be able to do that here as well.
Are you referring to the ExpansionIndcator? B/c that is different from the RowSelector, which is why the event would fire if you clicked it.
Also, if you don't want a Hierarchy, you have multiple options.
1. Don't use AutoGenerate Columns, and don't specify the ColumnLayout.
2. In the Columns Collection of the XamWebGrid, specify the ColumnLayout and set it's Visibility to Collapsed.
Note: Hierarchies are represented by ColumnLayout, objects, which represent a property in your data that is of type IEnumerable.
You can learn more from the following help article:
http://help.infragistics.com/Help/NetAdvantage/Silverlight/2009.1/CLR3.5/html/SL_xamWebGrid_Define_Column_Layout.html
perfect now I've got it as I need it
thank so much Stephen!!!!
On the RowSelectorSettings there is a property called EnableRowNumbering, just set it to false if you don't want row numbers.
As for the Expansion Indicator Column, you can follow the steps i gave you before, or you can go to ExpansionIndicatorSettings and set it's Visibility to collapsed.
got it, they are numbered by default? I'll have to do something about thta too LOL!
thanks Stephen, now I just need to hide the Expanders and I should be all set!
Right, that's b/c its still not the row selector, it is still an expansion indicator cell.
To turn on RowSelectors, you need to go to RowSelectorSettings and set Visibility to Visible.
that's correct the expansio indicator does not fire the event, but on rows whre there are no child collections attachec and that blue arrow does not show , the even still does not fire. I will look into these other suggested options
thanks