• Material 3
  • Bootstrap 5
  • Fluent 2
  • Tailwind CSS
  • Fluent 2 High Contrast
Preferences
Mode Selection
Touch
Mouse
Theme Selection
Theme Mode
Localization
*Translated by Google Translator.
Currency

Example of Conditional Row Selection in ASP.NET Core Data Grid Control

This sample demonstrates the conditional row selection of the Data Grid using checkbox selection. It allows end-users to select only specific rows based on certain conditions.

DEMO
SOURCE

In this demo, conditional row selection is implemented using the isRowSelectable callback function. This callback function executes before the grid loads data, evaluates each row, and returns false for orders with Delivered or Canceled status.

Selection is persisted by enabling selectionSettings -> persistSelection. With this setting, selected rows remain checked across all operations. Persist selection requires at least one column to be defined as a primary key using the columns -> isPrimaryKey property.

Transform your ASP.NET Core web apps today with Syncfusion® ASP.NET Core components
145+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE
opens in a new tab