Skip to content

Commit fa88099

Browse files
ROU-4871: Fix Dirty Mark in Action Column inside Group Columns (#408)
1 parent 3dbbdae commit fa88099

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Providers/DataGrid/Wijmo/Features/DirtyMark.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,18 @@ namespace Providers.DataGrid.Wijmo.Feature {
3333
private _isDirtyCell(row: number, col: number): boolean {
3434
const grid = this._grid.provider;
3535
if (this.hasMetadata(row)) {
36+
const binding = this._grid.provider.columns[col].binding;
37+
const targetColumn = this._grid.getColumn(binding);
3638
let isActionColumn = false;
3739

3840
//If the grid is autogenerated, not need to check for action columns.
3941
if (this._grid.autoGenerate === false) {
40-
const targetColumn = this._grid.getColumnByIndex(col);
4142
isActionColumn =
4243
targetColumn && targetColumn.columnType === OSFramework.DataGrid.Enum.ColumnType.Action;
4344
}
4445
//only if it is a column type different from ColumnType.Action, is that
4546
//we want to check the dirty mark.
4647
if (isActionColumn === false) {
47-
const binding = grid.getColumn(col).binding;
4848
const cellValue = grid.getCellData(row, col, false);
4949
const metadata = this.getMetadata(row);
5050
//If the cell isNew we want to have the dirty mark

0 commit comments

Comments
 (0)