Back to Devexpress

GridView.UnselectCell(GridCell) Method

windowsforms-devexpress-dot-xtragrid-dot-views-dot-grid-dot-gridview-dot-unselectcell-x28-devexpress-dot-xtragrid-dot-views-dot-base-dot-gridcell-x29.md

latest2.1 KB
Original Source

GridView.UnselectCell(GridCell) Method

Unselects the specified cell.

Namespace : DevExpress.XtraGrid.Views.Grid

Assembly : DevExpress.XtraGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

csharp
public void UnselectCell(
    GridCell cell
)
vb
Public Sub UnselectCell(
    cell As GridCell
)

Parameters

NameTypeDescription
cellGridCell

A GridCell object which represents the grid cell.

|

Remarks

Use the UnselectCell method to unselect individual cells.

To select a cell use the GridView.SelectCell method. To ensure that block selection is allowed use the GridView.IsCellSelect property.

After the selection has been changed, the ColumnView.SelectionChanged event is raised.

See Also

SelectCell

SelectionChanged

ClearSelection()

GridView Class

GridView Members

DevExpress.XtraGrid.Views.Grid Namespace