DataGridTextColumn.GenerateElement(DataGridCell, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
protected override Microsoft.UI.Xaml.FrameworkElement GenerateElement (CommunityToolkit.WinUI.UI.Controls.DataGridCell cell, object dataItem);
override this.GenerateElement : CommunityToolkit.WinUI.UI.Controls.DataGridCell * obj -> Microsoft.UI.Xaml.FrameworkElement
Protected Overrides Function GenerateElement (cell As DataGridCell, dataItem As Object) As FrameworkElement
Parameters
- cell
- DataGridCell
The cell that will contain the generated element.
- dataItem
- Object
The data item represented by the row that contains the intended cell.
Returns
Microsoft.UI.Xaml.FrameworkElement
A new, read-only TextBlock element that is bound to the column's Binding property value.