Click here to Skip to main content
15,880,469 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Dear C# WPF Gurus

I want to design my WPF Form Like this Image

Imgur: WPF User Rights Image[^]

Where All column names coming from an Enum names as Role.

C#
public enum Roles
{
Manager,
Master,
Engineer,
Guest
}


What I have tried:

Kindly Help and guide me that how to bind Enum values to DataGridColumns and row contains CheckBoxes.
Posted
Updated 20-Jan-21 18:10pm
v2

1 solution

Once you add a datagrid, you can label the columns anyway you want and it's possible to foreach over an enum

foreach (Suit suit in (Suit[]) Enum.GetValues(typeof(Suit)))
{
}
 
Share this answer
 
Comments
Maciej Los 21-Jan-21 2:03am    
5ed!
Christian Graus 21-Jan-21 2:12am    
Glad to help :)
Maciej Los 21-Jan-21 2:20am    
I wasn't in need, Christian ;)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900