mirror of
https://github.com/Stone-Red-Code/docs-desktop.git
synced 2026-09-04 09:06:04 +02:00
Specifying ItemsSource attribute in DataGrid element (#1183)
* Specifying ItemsSource attribute in DataGrid element #### Reference issues/PRs None #### What does this implements/fix? Explain your changes? The ItemsSource attribute addition in the below code sample wasn't mentioned in the documentation. #### Any Comments None * Minor; inline code elements Co-authored-by: Andy (Steve) De George <[email protected]>
This commit is contained in:
+1
-1
@@ -454,7 +454,7 @@ In this section, you'll update the UI for each item in the data-bound lists by u
|
||||
|
||||
[!code-xaml[ExpenseIt#30](~/samples/snippets/csharp/VS_Snippets_Wpf/ExpenseIt/CSharp/ExpenseIt9/ExpenseReportPage.xaml#30)]
|
||||
|
||||
4. Replace the <xref:System.Windows.Controls.DataGridTextColumn> elements with <xref:System.Windows.Controls.DataGridTemplateColumn> under the <xref:System.Windows.Controls.DataGrid> element and apply the templates to them.
|
||||
4. Replace the <xref:System.Windows.Controls.DataGridTextColumn> elements with <xref:System.Windows.Controls.DataGridTemplateColumn> under the <xref:System.Windows.Controls.DataGrid> element and apply the templates to them. Also, specify the `ItemsSource` attribute with its value in the `DataGrid` Element.
|
||||
|
||||
[!code-xaml[ExpenseIt#32](~/samples/snippets/csharp/VS_Snippets_Wpf/ExpenseIt/CSharp/ExpenseIt9/ExpenseReportPage.xaml#32)]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user