akgulebubekir / Maui.DataGrid

DataGrid component for Maui
MIT License
261 stars 54 forks source link

Selected item no longer working in 4.0.2+ #173

Closed andreptcosta closed 7 months ago

andreptcosta commented 7 months ago

Describe the bug I updated by project to the latest stable 4.0.3 and all my grids lost the ability to select items. After testing and debugging - I downloaded the full 4.0.3 code ZIP and ran the sample and it also is not working in the sample. Tested with Android local device and emulator.

To Reproduce Steps to reproduce the behavior:

  1. Set SelectionMode to Single
  2. Create a ItemSelected eventhandler with DisplayAlert
  3. nothing happens

Expected behavior Fired on ItemSelected delegate

Smartphone (please complete the following information):

Additional context MAUI 8.0.20

andreptcosta commented 7 months ago

Use RowTappedCommand resolved my problem