akgulebubekir / Maui.DataGrid

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

Added Row Tapped capability to bind a Command that gets executed if a row is tapped. #163

Closed chrigi28 closed 9 months ago

chrigi28 commented 9 months ago

We sometimes perform actions when a row is tapped, even when selection is disabled. To achieve this, I added a GestureRecognizer to the row and set up a bindable command.

akgulebubekir commented 9 months ago

This functionality can be acheved by listening the SelectedItem property. What is the main purpose for this functionality?

chrigi28 commented 9 months ago

We disable the selection mode because we don’t want the highlight effect on the active row. Setting the active row color to transparent will change its appearance to match the background color of the grid itself. Unfortunately, I couldn’t find a way to retrieve the current color setting. If you know of a better approach, please let me know

thx

akgulebubekir commented 9 months ago

I see, it makes sense. Just have a small comment. Once fixed I'll merge.

chrigi28 commented 9 months ago

Cool, Thank you!