You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<TextBlockTextWrapping="WrapWholeWords">Lorem ipsum ...</TextBlock>
@@ -153,7 +153,7 @@ We need to set the same key for the element to be connected with. Also, You can
153
153
In this page, we can also create a GridView which implements connected animation for its items. You need to set ListItemKey and ListItemElementName for specifying the UIElement to animate.
description: The Implicit Animations Attached Properties enable implicit animations to be defined in your XAML code
5
5
keywords: windows 10, uwp, windows community toolkit, uwp community toolkit, uwp toolkit, composition animations, animation, implicit animations, XAML, implicit, composition, show animation, hide animation
Copy file name to clipboardExpand all lines: docs/controls/datagrid_guidance/rowdetails.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
title: How to - Display and Configure Row Details in the DataGrid Control
2
+
title: Display and Configure Row Details in DataGrid
3
3
author: harinikmsft
4
4
description: Guidance document that shows how to customize row details section in the DataGrid control
5
5
keywords: windows 10, uwp, windows community toolkit, windows toolkit, DataGrid, xaml control, xaml, RowDetails
@@ -61,7 +61,7 @@ Set the **RowDetailsVisibilityMode** property to a value of the **DataGridRowDet
61
61
**Visible* : The row details section is displayed for all rows.
62
62
**VisibleWhenSelected* : The row details section is displayed only for selected rows.
63
63
64
-
The following example shows how to use the RowDetailsVisibilityMode property to change the row details display mode programmatically from the selection of a value in a ComboBox:
64
+
The following example shows how to use the RowDetailsVisibilityMode property to change the row details display mode programmatically from the selection of a value in a ComboBox:
65
65
66
66
```C#
67
67
// Set the row details visibility to the option selected in the combo box.
@@ -93,4 +93,4 @@ Set the **AreRowDetailsFrozen** property to true.
93
93
*[Add a DataGrid control to a page](datagrid_basics.md)
94
94
*[Customize the DataGrid control using styling and formatting options](styling_formatting_options.md)
95
95
*[Sizing options in the DataGrid control](sizing_options.md)
Copy file name to clipboardExpand all lines: docs/controls/datagrid_guidance/sizing_options.md
+12-12Lines changed: 12 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
title: How to - Use the different sizing options in the DataGrid control
2
+
title: Sizing options in the DataGrid control
3
3
author: harinikmsft
4
4
description: Guidance document that shows how to size the rows, columns and headers of the DataGrid control
5
5
keywords: windows 10, uwp, windows community toolkit, windows toolkit, DataGrid, xaml control, xaml
@@ -50,10 +50,10 @@ The following table shows the values provided by the DataGridLengthUnitType stru
50
50
51
51
| Name | Description |
52
52
|---|---|
53
-
| Auto | The default automatic sizing mode sizes DataGrid columns based on the contents of both cells and column headers. |
54
-
| SizeToCells | The cell-based automatic sizing mode sizes DataGrid columns based on the contents of cells in the column, not including column headers.|
55
-
| SizeToHeader | The header-based automatic sizing mode sizes DataGrid columns based on the contents of column headers only.|
56
-
| Pixel | The pixel-based sizing mode sizes DataGrid columns based on the numeric value provided.|
53
+
| Auto | The default automatic sizing mode sizes DataGrid columns based on the contents of both cells and column headers. |
54
+
| SizeToCells | The cell-based automatic sizing mode sizes DataGrid columns based on the contents of cells in the column, not including column headers.|
55
+
| SizeToHeader | The header-based automatic sizing mode sizes DataGrid columns based on the contents of column headers only.|
56
+
| Pixel | The pixel-based sizing mode sizes DataGrid columns based on the numeric value provided.|
57
57
| Star | The star sizing mode is used to distribute available space by weighted proportions. In XAML, star values are expressed as n* where n represents a numeric value. 1* is equivalent to *. For example, if two columns in a DataGrid had widths of * and 2*, the first column would receive one portion of the available space and the second column would receive two portions of the available space.
58
58
59
59
The **DataGridLengthConverter** class can be used to convert data between numeric or string values and DataGridLength values.
@@ -62,14 +62,14 @@ By default, the **DataGrid.ColumnWidth** property is set to Auto, and the **Data
62
62
63
63
Columns in the DataGrid can also be set to automatically size only within specified boundaries, or columns can be set to a specific size. The following table shows the properties that can be set to control column sizes.
64
64
65
-
| Property | Description |
65
+
| Property | Description |
66
66
|---|---|
67
-
| DataGrid.MaxColumnWidth | Sets the upper bound for all columns in the DataGrid.|
68
-
| DataGridColumn.MaxWidth | Sets the upper bound for an individual column. Overrides DataGrid.MaxColumnWidth.|
69
-
| DataGrid.MinColumnWidth | Sets the lower bound for all columns in the DataGrid.|
70
-
| DataGridColumn.MinWidth | Sets the lower bound for an individual column. Overrides DataGrid.MinColumnWidth.|
71
-
| DataGrid.ColumnWidth | Sets a specific width for all columns in the DataGrid.|
72
-
| DataGridColumn.Width | Sets a specific width for an individual column. Overrides DataGrid.ColumnWidth.|
67
+
| DataGrid.MaxColumnWidth | Sets the upper bound for all columns in the DataGrid.|
68
+
| DataGridColumn.MaxWidth | Sets the upper bound for an individual column. Overrides DataGrid.MaxColumnWidth.|
69
+
| DataGrid.MinColumnWidth | Sets the lower bound for all columns in the DataGrid.|
70
+
| DataGridColumn.MinWidth | Sets the lower bound for an individual column. Overrides DataGrid.MinColumnWidth.|
71
+
| DataGrid.ColumnWidth | Sets a specific width for all columns in the DataGrid.|
72
+
| DataGridColumn.Width | Sets a specific width for an individual column. Overrides DataGrid.ColumnWidth.|
73
73
74
74
### DataGrid Column Headers
75
75
By default, DataGrid column headers are displayed. To hide column headers, the **HeadersVisibility** property must be set to *DataGridHeadersVisibility.Row* or *DataGridHeadersVisibility.None*. By default, when column headers are displayed, they automatically size to fit their content. The column headers can be given a specific height by setting the **DataGrid.ColumnHeaderHeight** property.
* Adjust all column widths using mouse/touch/pen through the **DataGrid.CanUserResizeColumns** property.
78
+
You can allow users to:
79
+
* Adjust all column widths using mouse/touch/pen through the **DataGrid.CanUserResizeColumns** property.
80
80
* Change the column display order by dragging the column headers using mouse/touch/pen through the **DataGrid.CanUserReorderColumns** property.
81
81
* Set this behavior for individual columns by setting the **DataGridColumn.CanUserReorder/CanUserResize** properties. If the individual column properties and the global DataGrid.** properties are both set, a value of false will take precedence over a value of true.
0 commit comments