Hi Michael,
Thanks for contacting Syncfusion support.
Query: “How do you deselect all rows is a grid?”
We suggest you to achieve your requirement using ClearSelection() method of Grid. Refer the below code example.
<SfButton Content="Clear Selection" OnClick="Clear"></SfButton>
<SfGrid @ref="Grid" DataSource="@Orders" AllowSelection="true" AllowPaging="true">
<GridSelectionSettings Type="SelectionType.Multiple"></GridSelectionSettings>
. . . . . . .
</SfGrid>
@code{
public List<Order> Orders { get; set; }
SfGrid<Order> Grid { get; set; }
public async Task Clear()
{
await Grid.ClearSelection();
}
|
Refer our API documentation for your reference
Kindly get back to us if you have further queries.
Regards,
Vignesh Natarajan