Skip to content

Blazorise DataGrid data binding #3943

Answered by stsrki
GevorDanielyan asked this question in Q&A
Discussion options

You must be logged in to vote

Just have a parameter that sets the Editable parameter.

YourComponent.razor

@using Grpc.Core
@using TariffCashOutgRPCService
@using Blazorise.DataGrid
@using GrpcService.BlazorApp.Models
@using Google.Protobuf.WellKnownTypes
@inject ILogger<TariffCashOut> _logger
@inject TariffCashOutgRPCService.TariffCashOutService.TariffCashOutServiceClient tariffCashOutServiceClient

<Div Style="display: flex; justify-content: space-between; width: 31%;">
    <DataGrid TItem="TariffCashOutModel"
              Data="_tariffCashOut"
              Virtualize
+              Editable="@Editable"
              EditMode="DataGridEditMode.Popup"
              RowUpdated="@OnRowUpdated"
              Hoverable
…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by GevorDanielyan
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