DataGridSelectionUnit 列挙型
定義
public enum class DataGridSelectionUnit
public enum DataGridSelectionUnit
type DataGridSelectionUnit =
Public Enum DataGridSelectionUnit
- 継承
フィールド
Cell | 0 | セルのみ選択できます。Only cells are selectable. セルをクリックすると、そのセルが選択されます。Clicking a cell selects the cell. 行ヘッダーまたは列ヘッダーをクリックしても、何も実行されません。Clicking a row or column header does nothing. |
CellOrRowHeader | 2 | セルと行を選択できます。Cells and rows are selectable. セルをクリックすると、そのセルのみが選択されます。Clicking a cell selects only the cell. 行ヘッダーをクリックすると、その行全体が選択されます。Clicking a row header selects the full row. |
FullRow | 1 | 行全体のみ選択できます。Only full rows are selectable. セルまたは行ヘッダーをクリックすると、その行全体が選択されます。Clicking a cell or a row header selects the full row. |
注釈
プロパティとプロパティを一緒にDataGrid使用するとDataGrid.SelectionUnit 、ユーザーが内の項目を選択する方法を決定できます。 DataGrid.SelectionModeThe DataGrid.SelectionMode and DataGrid.SelectionUnit properties together determine how users can select items in a DataGrid. DataGrid.SelectionModeたとえば、 DataGridがDataGridSelectionMode.Singleで、 Cell
がの場合、ユーザーはで一度に1つのセルだけを選択できます。 DataGrid.SelectionUnitFor example, if the DataGrid.SelectionMode is DataGridSelectionMode.Single and the DataGrid.SelectionUnit is Cell
, the user can select only one cell at a time in the DataGrid.