JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › Data Grid › Dynamic columns (Blazor) › Reply To: Dynamic columns (Blazor)
November 5, 2021 at 10:46 am
#102508
TurricanDE
Participant
You refer to this one, I guess:
https://www.htmlelements.com/blazor/blazor-ui/demos/blazor-grid?id=dynamic-columns
But in this demo you are showing all the columns and than you can remove columns or add. What if you set the grid without the column field e.g. “GDP_Total” first and then add this column later. All the cells for this added column are empty (but the data is already loaded in the data source)
And as I mentioned above there is also this strange line : grid.Columns = new List<GridColumn>() { }; //TODO: remove