We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Multiple Generic Type Columns Not Working

I have a parent class and I want to bind the columns to the properties as usual. The grid seems to break when I try to do this when one or more of the properties is of a different generic type than the first one. Meaning, in the scenario below, the first 2 columns are of type GenericClass, but as soon as I try to bind to the third property of a different generic type, the grid fails to render that column. You can't tell in the screenshot, but not only do the values not render, but you also can't edit it.


What am I doing wrong here?







1 Reply

PS Prathap Senthil Syncfusion Team December 2, 2022 01:08 PM UTC

Hi Brian,

Greetings from Syncfusion support.


We have checked your code and found that you want to bind one to many relationship columns(List<object> ). We would like to inform you that we do not have direct support for this. You can achieve your requirement by using the Column template feature of the grid. Please refer to the below example sample and the documentation for your reference.

Documentation :

Column template -  https://blazor.syncfusion.com/documentation/datagrid/columns#column-template

Dynamic column binding -  https://blazor.syncfusion.com/documentation/datagrid/columns#dynamic-column-building


Regards,

Prathap S



Loader.
Live Chat Icon For mobile
Up arrow icon