Datagrid

How to Add a Datagrid in WPF

–Datagrid in WPF 1) Create a Datagrid <DataGrid x:Name=”uxHistory” AutoGenerateColumns=”False” IsReadOnly=”True” Margin=”0,5,0,0″> </DataGrid> 2) then define datagrid column <DataGrid.Columns></DataGrid.Columns> 3) Now add DataGridTemplateColumn field to actually specify data related to each column <DataGridTemplateColumn Header=”{DynamicResource ResourceKey=RegistrationSearchControl.ApplicationNumber.TextBlock.Text}” Width=”Auto”></DataGridTemplateColumn> 4)<DataGridTemplateColumn.CellTemplate></DataGridTemplateColumn.CellTemplate> 5) <DataTemplate></DataTemplate> 6) … Read More

How to display a new window by double clicking a row in datagrid in WPF

An easy way of displaying a new window in WPF by double clicking a selected row in Data Grid Add a new second window to project Once added, add any datagrid, rows, columns you need to, example Then go FirstWindow.xaml … Read More