Open GevorDanielyan opened 2 years ago
You can bind the event on RowClicked. And then call dataGridRef.Edit(item);
We have many APIs opened on DataGrid that you can explore with intellisense. Save
included.
How I can do that in my case? If it is not difficult, you can write an example? Thanks.
First, define a member variable to hold the grid reference
private DataGrid dataGridRef;
the assign it
<DataGrid @ref="@dataGridRef" >
after that, you can call its methods
await dataGridRef.Edit(someSelectedItem);
this will change the grid into edit modeawait dataGridRef.Save();
this will save any changes
I have an one question, about editing in grid row, how can I create inline editing in row, without edit button, just clicking in each cell.
This is my component, I need be able edit each DataGridColumn and when I edit some cell value, I need to call my custom method to save values(I have this method). Thanks in advance