UWP DataGrid:DataGrid
Q1: I want to make the columns width divided equally and make it occupy all the available width, how is that?
xaml:
<controls:DataGrid x:Name="dt_Home" AutoGenerateColumns="True"
CanUserResizeColumns="False"
AlternatingRowBackground="Gainsboro"
ItemsSource="{Binding UserSource, Mode=OneWay}"
IsReadOnly="True"/>
My DataGrid ItemSource is in my ViewModel:
public ObservableCollection<User> UserSource { get; set; } = new ObservableCollection<User>();
Q2: I want to modify the column names , for example, change the FirstName column to display FIRST NAME, how is that?
