Click here to Skip to main content
15,917,538 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have simple code for model
<pre lang="c#">public class Customer {
    public string FirstName {get; set;}
    public string LastName {get; set;}
    public string Gender {get; set;}
    public string WebSite {get; set;}
}


I group them into the DataGrid Grouped and it will show all columns, but I want to hide the column Gender. Is it possible?

What I have tried:

Try to set Style and
DataContext
on
ItemsPresenter
Posted
Updated 21-Mar-17 5:26am

1 solution

Found the answer, it is just simple as it is. By define the
DataGrid.Columns
as normal
 
Share this answer
 

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