How to set selected row selected in DataTable after Submitting form?
How to set selected row selected in DataTable after Submitting form?
![MichaelLand](https://secure.gravatar.com/avatar/049bdcaac74036eb06fb220c6b7b72fc/?default=https%3A%2F%2Fvanillicon.com%2F049bdcaac74036eb06fb220c6b7b72fc_200.png&rating=g&size=120)
Hello,
I have a following problem: I have a html form containing DataTable and html-Submit button. If I choose a row from DataTable, modify it and then save DataTable using html Submit-button DataTable loses it's selected row when submit is done .
In first column of DataTable is a unique Id-field that is generated when inserting row first time into database. I also keep selected row's id in a Hidden field to indicate which row is selected.
After Submit I have this Id but how can I select row in DataTable using that Id value?
After Submit DataTable loses it's selected row but I should show it selected.
Br
Mike
I have a following problem: I have a html form containing DataTable and html-Submit button. If I choose a row from DataTable, modify it and then save DataTable using html Submit-button DataTable loses it's selected row when submit is done .
In first column of DataTable is a unique Id-field that is generated when inserting row first time into database. I also keep selected row's id in a Hidden field to indicate which row is selected.
After Submit I have this Id but how can I select row in DataTable using that Id value?
After Submit DataTable loses it's selected row but I should show it selected.
Br
Mike
This discussion has been closed.