Changing DT_RowId in the create event

Changing DT_RowId in the create event

jladburyjladbury Posts: 34Questions: 9Answers: 0
edited September 2019 in Editor

Hopefully a quick question . . .

If I change DT_RowId in the create event, the ID is not written to the row id in the DOM. Is this working as designed?

Background to the question: I initialise the table from JSON that includes an id field for each row. When adding a row, I compute the next free id in my dataset, and set DT_RowId to that value in the create event function. However, the value does not get written to the DOM - instead I get something like tr id="15686309084190"....

I can circumvent this by recreating the entire table from my updated dataset, but this seems like overkill!

Answers

This discussion has been closed.