Skip to content

Commit 9556a35

Browse files
vnbaaijdvoituron
andauthored
Fix #3185 (#3188)
Co-authored-by: Denis Voituron <dvoituron@outlook.com>
1 parent 0d82ff8 commit 9556a35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Core/Components/DataGrid/FluentDataGridCell.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public partial class FluentDataGridCell<TGridItem> : FluentComponentBase
6363
protected string? ClassValue => new CssBuilder(Class)
6464
.AddClass("column-header", when: CellType == DataGridCellType.ColumnHeader)
6565
.AddClass("select-all", when: CellType == DataGridCellType.ColumnHeader && Column is SelectColumn<TGridItem>)
66-
.AddClass("multiline-text", when: Grid.MultiLine && CellType != DataGridCellType.ColumnHeader)
66+
.AddClass("multiline-text", when: Grid.MultiLine && (Grid.Items is not null || Grid.ItemsProvider is not null) && CellType != DataGridCellType.ColumnHeader)
6767
.AddClass(Owner.Class)
6868
.Build();
6969

0 commit comments

Comments
 (0)