Skip to main content

GenerateElement Method

Gets a read-only TextBlock element that is bound to the column's Binding property value.

Definition

Namespace: Avalonia.Controls
Assembly: Avalonia.Controls.DataGrid (in Avalonia.Controls.DataGrid.dll)

protected override Control GenerateElement(
DataGridCell cell,
Object dataItem
)

Parameters

  DataGridCell
The cell that will contain the generated element.
  Object
The data item represented by the row that contains the intended cell.

Return Value

Control
A new, read-only TextBlock element that is bound to the column's Binding property value.

See Also

Reference

DataGridTextColumn Class
Avalonia.Controls Namespace