Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Core/Components/DataGrid/FluentDataGrid.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,8 @@ private void FinishCollectingColumns()
throw new Exception("You can use either the 'GridTemplateColumns' parameter on the grid or the 'Width' property at the column level, not both.");
}

if (string.IsNullOrWhiteSpace(_internalGridTemplateColumns))
// Always re-evaluate after collecting columns when using displaymode grid. A column might be added or hidden and the _internalGridTemplateColumns needs to reflect that.
if (DisplayMode == DataGridDisplayMode.Grid)
{
if (!AutoFit)
{
Expand All @@ -501,7 +502,6 @@ private void FinishCollectingColumns()
{
_internalGridTemplateColumns = string.Join(" ", _columns.Select(x => x.Width ?? "auto"));
}

}

if (ResizableColumns)
Expand Down
Loading