Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Discussion options

You must be logged in to vote

You can supply an EditTemplate to tell the MudDataGrid to show the value as a checkbox. IsDisabled is a Boolean in this example.

<MudDataGrid>
<Columns>
<PropertyColumn Property="x => x.DemoId" Title="Id" IsEditable="false" />
<PropertyColumn Property="x => x.Name" IsEditable="true" />
<PropertyColumn Property="x => x.IsDisabled" IsEditable="true">
<EditTemplate>
<MudCheckBox @bind-Checked="context.Item.IsDisabled" />
</EditTemplate>
</PropertyColumn>
</Columns>
</MudDataGrid>

Replies: 5 comments 5 replies

Comment options

You must be logged in to vote
3 replies
@zpgm
Comment options

@ScarletKuro
Comment options

@zpgm
Comment options

Answer selected by dsu0629
Comment options

You must be logged in to vote
1 reply
@D3m0n4t3r
Comment options

Comment options

You must be logged in to vote
1 reply
@D3m0n4t3r
Comment options

Comment options

You must be logged in to vote
0 replies
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
Labels
None yet
7 participants