Y
Y
youngpr2020-10-03 15:38:08
WPF
youngpr, 2020-10-03 15:38:08

How to set title on this table in DataGrid?

<Grid>
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="50" />
        </Grid.RowDefinitions>
        <DataGrid x:Name="phonesList"  ItemsSource="{Binding}">
            <DataGrid.ItemTemplate>
                <DataTemplate>
                    <StackPanel>
                        <TextBlock Text="{Binding Name}" FontSize="16" />
                        <TextBlock Text="{Binding Position}" FontSize="12" />
                        <TextBlock Text="{Binding PhoneNumber}" FontSize="13" />
                        <TextBlock Text="{Binding Email}" FontSize="16" />
                        <TextBlock Text="{Binding Organisation}" FontSize="16" />
                    </StackPanel>
                </DataTemplate>
            </DataGrid.ItemTemplate>
        </DataGrid>
        <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Center">
            <Button Content="Добавить" Margin="10" Click="Add_Click" />
            <Button Content="Изменить" Margin="10" Click="Edit_Click"  />
            <Button Content="Удалить" Margin="10" Click="Delete_Click"  />
        </StackPanel>
    </Grid>


The datagrid displays headers like id, name, etc. instead. I would like to ask their Russian designations

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman, 2020-10-04
@youngpr

https://docs.microsoft.com/ru-ru/dotnet/api/system...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question