Hi,
Underneath the grid, display a button. The button should be disabled by default. If any changes are made to the grid (i.e. if a row is added, a row is removed, or data entered for a row is changed), the button should be enabled. After the button is clicked, it should become disabled again. Any help will be appreciated.
Discussion posts and replies are publicly visible
You can use a local variable to track changes in a grid. If any changes are made to the grid, the variable will be set to true, indicating that there have been changes. If there are no changes, the variable will remain false. Additionally, if a submit button is clicked, the variable should be set back to false to indicate that the changes have been submitted.
true
false
To summarize, you can use a single local variable to keep track of changes in a grid and reset it to false when changes are submitted.