Skip to content

MultiSelect DataGrid checkboxes always editable #5062

Closed Answered by David-Moreira
RealityMasque asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @RealityMasque
It seems there's an issue with the DataGridMultiSelectColumn, where even if you have your own custom template, just clicking inside the column triggers the selection for the row internally. I have to take a more thorough look at that, I'll open an issue.

As an alternative, you can use a regular column, and introduce PreventRowClick to make it so the selection only happens when the edit state flag is set to true.

Please find the working code below:

<Card Shadow="Shadow.Large" Margin="Margin.Is5">
    <CardBody Padding="Padding.Is5">
        <Button Color="Color.Secondary" Clicked="OnChangeEditStateClicked">Change Edit State</Button>
        <br />
        Edit State = …

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@David-Moreira
Comment options

Comment options

You must be logged in to vote
5 replies
@RealityMasque
Comment options

@RealityMasque
Comment options

@RealityMasque
Comment options

@David-Moreira
Comment options

Answer selected by RealityMasque
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants