This repository has been archived on 2024-01-02. You can view files and clone it, but cannot push or open issues or pull requests.
Sic06/FrameworkLocal/UIClient/DataGridTransform/DataGrid/Microsoft/Windows/Controls/DataGridSelectionUnit.cs

37 lines
1.2 KiB
C#

//---------------------------------------------------------------------------
//
// Copyright (C) Microsoft Corporation. All rights reserved.
//
//---------------------------------------------------------------------------
using System;
namespace ExtendedGrid.Microsoft.Windows.Controls
{
/// <summary>
/// The accepted selection units used in selection on a DataGrid.
/// </summary>
public enum DataGridSelectionUnit
{
/// <summary>
/// Only cells are selectable.
/// Clicking on a cell will select the cell.
/// Clicking on row or column headers does nothing.
/// </summary>
Cell,
/// <summary>
/// Only full rows are selectable.
/// Clicking on row headers or on cells will select the whole row.
/// </summary>
FullRow,
/// <summary>
/// Cells and rows are selectable.
/// Clicking on a cell will select the cell. Selecting all cells in the row will not select the row.
/// Clicking on a row header will select the row and all cells in the row.
/// </summary>
CellOrRowHeader
}
}