Skip to main content
Version: 1.x

@microsoft/fast-foundation > DataGridRow

DataGridRow class

A Data Grid Row Custom HTML Element.

row-focused - Fires a custom 'row-focused' event when focus is on an element (usually a cell or its contents) in the row

  • The default slot for custom cell elements
Signature:
export declare class DataGridRow extends FoundationElement 

Properties

PropertyModifiersTypeDescription
cellItemTemplateViewTemplateThe template used to render cells in generated rows.
columnDefinitionsColumnDefinition[] | nullThe column definitions of the row
gridTemplateColumnsstringString that gets applied to the the css gridTemplateColumns attribute for the row
headerCellItemTemplateViewTemplateThe template used to render header cells in generated rows.
rowDataobject | nullThe base data for this row
rowIndexnumberThe index of the row in the parent grid. This is typically set programmatically by the parent grid.
rowTypeDataGridRowTypesThe type of row

Methods

MethodModifiersDescription
handleCellFocus(e)
handleFocusout(e)
handleKeydown(e)