We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a8940a commit bb59113Copy full SHA for bb59113
1 file changed
qgrid/grid.py
@@ -1689,6 +1689,20 @@ def _add_row(self, row):
1689
return index_col_val
1690
1691
def edit_cell(self, index, column, value):
1692
+ """
1693
+ Edit a cell of the grid, given the index and column of the cell
1694
+ to edit, as well as the new value of the cell. Results in a
1695
+ ``cell_edited`` event being fired.
1696
+
1697
+ Parameters
1698
+ ----------
1699
+ index : object
1700
+ The index of the row containing the cell that is to be edited.
1701
+ column : str
1702
+ The name of the column containing the cell that is to be edited.
1703
+ value : object
1704
+ The new value for the cell.
1705
1706
old_value = self._df.loc[index, column]
1707
self._df.loc[index, column] = value
1708
self._unfiltered_df.loc[index, column] = value
0 commit comments