How to show different controls in same column of grid in Blazor

Hi,

I need to have different controls (e.g. a textbox or a databound combobox) in the same column, depending on data in another column. I have seen this described for WPF in the Knowledgebase (see url below), but how can this be achieved in Blazor?

https://www.syncfusion.com/kb/7181/how-to-show-different-controls-in-same-column-of-wpf-datagrid-sfdatagrid


Thanks in advance!

Arne


1 Reply

RN Rahul Narayanasamy Syncfusion Team February 23, 2022 01:42 PM UTC

Hi Arne, 

Greetings from Syncfusion. 

You want to show different controls in the Grid column. You can achieve your requirement by using Column Template feature. Find the below documentation for your reference. 

Reference

If you want to show some other controls while editing, then you can achieve your requirement by using EditTemplate feature. Find the below links for reference. 

Reference

Please let us know if you have any concerns. 

Regards, 
Rahul 


Loader.
Up arrow icon