Hey, I am trying the infragistics WPF tool.
I even don't know if this is possible, but I will give it a try.
I have two simple classes:
User with properties Id int Name string UserName string Groups List<Group>
Group with properties Id int Name string
So far I have used the XamGrid to show a list of users, and the result is like this:
But what I want is to display it like this:
Is it even possible ??
Hello Nawed,
Thank you for your post. I have been looking into I, but I am not completely sure that I understood your requirement. Could you please be more specific what is the functionality you want to achieve, because the vertical textblocks in the second screenshot don’t correspond to any of the items in the first one and I cannot be sure what they represent.
Looking forward for your reply.
Hey Stefan,
Tnx for your reply,
The second screenshot is from Excel, that's why it looks like that. In the end it doesn't have to be vertical.
The functionality I want to achieve is, that I have a class user, with the attributes ID, NAME, USERNAME and Groups. Groups is of type List<Group>.Now I want to list the GROUPS as attributes in the XamGrid. Name attribute in group should be header, and then there can be a x, or just a checkbox to indicate if the user have the specified group.
I can say that you can add the UnboundColumns dynamically, not just by using XAML. Also I can say that each Row should have the same amout of Columns. If you want different Columns for different Rows, you can suggest new product ideas for future versions (or vote for existing ones) at <http://ideas.infragistics.com>.
There are many benefits to submitting an product idea:
- Direct communication with our product management team regarding your product idea.
- Notifications whenever new information regarding your idea becomes available.
- Ability to vote on your favorite product ideas to let us know which ones are the most important to you. You will have ten votes for this and can change which ideas you are voting for at any time.
- Allow you to shape the future of our products by requesting new controls and products altogether.
- You and other developers can discuss existing product ideas with members of our Product Management team.
Steps to create your idea:
1. Log into the Infragistics Product Idea site at http://ideas.infragistics.com (creating a new login if needed).
2. Navigate to the product / platform channel of your choice (e.g. WPF, Windows Forms, ASP.NET, HTML5 / Ignite UI, iOS / NucliOS, etc.)
3. Add your product idea and be sure to be specific and provide as much detail as possible. Explain the context in which a feature would be used, why it is needed, why it can’t be accomplished today, and who would benefit from it. You can even add screenshots to build a stronger case. Remember that for your suggestion to be successful, you need other members of the community to vote for it. Be convincing!
The Product Idea site puts you in the driver’s seat and allows you to track the progress of your ideas at any time, see how many votes it got, read comments from other developers in the community, and see if someone from the product team has additional questions for you.
Tnx for the reply.
Making it that way is pretty simple.But the case is that, groups and user are from a database. And I never know which group belongs to which user, and I actually don't know which groups we have. The groups can be created and deleted from database. So hardcoding it is not the solution.
I have created a sample project for you with the functionality you want. Basically I changed the data structure in order to achieve this functionality. I added a bool Property to the Group class, which determines whether the group belongs to the user or not and every user has a group collection containing all available groups. I also defined all the groups as UnboundColumns in the XamGrid and added CheckBoxes in the Templates, bound to the bool property of every group. Please let me know if this helps you or you need further assistance on this matter.