有人可以帮助我如何向 DataGrid 的 NoRecordsContent 参数提供参数吗?当网格中没有数据时,我想要风格化的文本显示。
NoRecordsContent
是 RenderFragment
参数。你这样使用它:
<MudDataGrid ...>
...
<NoRecordsContent>
No data
</NoRecordsContent>
</MudDataGrid>
您可以在里面放入任何html内容
<NoRecordsContent></NoRecordsContent>
:https://try.mudblazor.com/snippet/mkwIudENKnGKnhrI