Hello,
I have an application that uses the XamGrid and i would like to navigate throught it by buttons.
When the XamGrid is in a "normal" state as that :
The navigation i implemented works fine (even with filters).
The problem concern the group, when i want to pass to the next element as that :
I got an exception because the next element taken is the value inside the cell (here a string).
Is there a way to solve it ?
I join a .sln to show you how i implemented the navigation.
Regards.
Hi,
Thanks and happy new year to you as well.
Could you provide me with your code for repositioning / navigating with the buttons? I understand conceptually what you are doing but without the details it’s hard for me to say what is causing the delay.
If you can attach your code to the thread that would be very helpful to me.
First of all I wish you an happy new year.
I would know if someone find a solution to my issue ?
Thanks for the explanations. I found a way to do what i want with the ParentRow and RowType properties but now i have an issue when few groups are apply with a lot of data.
I tested with 5 groups and 20000 elements
When i'm positioning on the first element and i click on the button to go the last element i have to wait around 5 minutes to be positioned on the element. I found that's it's the affectation of the ActiveItem causes this latency.
With no groups the positioning is immediate.
Is there a way to improve that ?
In the solution there is a component that regroup the four buttons for the navigation with a dependency property of type XamGrid. In that way the navigation can be apply on any XamGrid.
The levels indicate the level within the he hierarchical structure of the grid. The hierarchy is defined in the hierarchical structure of the source data and by setting the AutoGenerateColumns to true or by defining Column Layouts causes there to be levels.
A level of 0 indicates the root level.
All rows have the following properties
RowType In this case we’ve been talking about GroupByRow and DataRow
http://help.infragistics.com/NetAdvantage/Silverlight/2011.2/CLR4.0/?page=InfragisticsSL4.Controls.Grids.XamGrid.v11.2~Infragistics.Controls.Grids.RowType.html
Level Gets the level in the hierarchy of the Row.
ParentRow The Infragistics.Controls.Grids.Row.ParentRow that owns this Row
To get more information about defining columnLayouts you can use this link to the general topic.
http://help.infragistics.com/NetAdvantage/Silverlight/2011.2/CLR4.0/?page=SL_xamGrid_Define_Column_Layout.html
thanks a lot for you anwser, the code helped me to understand the principe but i have another question about the level of grouping.
I found a property "Level" in the property GroupByRow but its value is always 0, is there a particular way to use it ?