Hi,
I use the following code and everything is OK:
<SfGrid @ref="myGrid" DataSource="@lstUsers" GridLines="GridLine.Both"
AllowSorting="true" AllowFiltering="true" AllowResizing="true"
Height="100%" Width="100%">
</SfGrid>
But when I use the following code, there is a problem that the height of the datagrid is not set correctly and sometimes the scroll bar is not displayed.
<div role="alert" class="alert alert-primary d-flex justify-content-between " style="margin-top:3p;"></div>
<SfGrid @ref="myGrid" DataSource="@lstUsers" GridLines="GridLine.Both"
AllowSorting="true" AllowFiltering="true" AllowResizing="true"
Height="100%" Width="100%">
</SfGrid>
I have read the following documunet:
https://blazor.syncfusion.com/documentation/datagrid/scrolling?_ga=2.156862072.218327963.1642223498-73119071.1629792372#responsive-with-parent-container
The problem is that the height of the alert div can be different at runtime and I can not use the mentioned guide