Skip to content

DataTemplateSelector does not work for DataGridColumn .CellTemplate #230

@RodSanford

Description

@RodSanford

Describe the bug
DataGridColumn .CellTemplate accepts and displays correctly when using a DataTemplate, but not when defining a DataTemplateSelector

To Reproduce
Steps to reproduce the behavior:

  1. Assign DataGridColumn .CellTemplate a DataTemplate, note that the cell displays correctly
  2. Assign DataGridColumn .CellTemplate a DataTemplateSelector, note that the cell displays nothing and that OnSelectTemplate method is never called in the DataTemplateSelector

Expected behavior
Cell displays according to the DataTemplate value returned in the OnSelectTemplate method

Smartphone (please complete the following information):

  • Device: Android
  • OS: 13
  • Grid version 4.0.6

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions