0
I have a modal where I use it to include and change the data.
I check if the field txtid
is completed. If you have a change, it is not included.
To fill in the fields the user needs to select the grid line, where the id is rescued to make the change.
But I need to clear the modal if the user does not make the change.
I created a button that updates the grid, loses the selection and clears the txt, but it opens with all filled fields.
GridAgenda();
GridView1.SelectedIndex = -1;
txtid.Text = "";
GridAgenda()
is the method that loads Gridview.
Sometimes it selects and does not change, I click on this button to clear, and click on the register, the modal comes filled with the last selected line.