In the DataGrid, the selected row is not highlighted with color when AllowVirtualization= "true" #174

Closed
opened 2026-01-29 17:32:48 +00:00 by claunia · 2 comments
Owner

Originally created by @pedrobulano on GitHub (Aug 16, 2021).

Describe the bug
In the DataGrid, the selected row is not highlighted with color when AllowVirtualization= "true".
To Reproduce
Steps to reproduce the behavior:
Set AllowVirtualization="true" in the DataGrid. When you select a row, it is not highlighted.

Desktop (please complete the following information):

  • OS: Win10
  • Browser: any
  • Version: 3.8.2
Originally created by @pedrobulano on GitHub (Aug 16, 2021). **Describe the bug** In the DataGrid, the selected row is not highlighted with color when AllowVirtualization= "true". **To Reproduce** Steps to reproduce the behavior: Set AllowVirtualization="true" in the DataGrid. When you select a row, it is not highlighted. **Desktop (please complete the following information):** - OS: Win10 - Browser: any - Version: 3.8.2
Author
Owner

@enchev commented on GitHub (Aug 16, 2021):

You should either bind the selected items or subscribe to RowSelect event.

image

image

@enchev commented on GitHub (Aug 16, 2021): You should either bind the selected items or subscribe to RowSelect event. ![image](https://user-images.githubusercontent.com/5804953/129574287-0aa4ff81-d07f-4234-96bb-5bd2dce0d53a.png) ![image](https://user-images.githubusercontent.com/5804953/129574246-b3125147-2a6a-4bd6-a9d5-3901f15817b4.png)
Author
Owner

@pedrobulano commented on GitHub (Aug 17, 2021):

Vladimir, thank you for your quick response. But the problem was different. I used a query without tracking entities items= db. Items.AsNoTracking().Where (...). When I removed AsNoTracking (), the problem was resolved.

@pedrobulano commented on GitHub (Aug 17, 2021): Vladimir, thank you for your quick response. But the problem was different. I used a query without tracking entities **items= db. Items.AsNoTracking().Where (...)**. When I removed AsNoTracking (), the problem was resolved.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#174