Swamy
Swamy

Reputation: 13

Unable to refresh TableView after deleting a row data

I am deleting a row data from TableView but it is not updating after the action. I am updating the values, that is working fine. But only if I delete entire row the problem arises. Help. Using JavaFx.

I am removing that entry by this:

observablelist.remove(selectedIndex);

And setting the contents again:

tvTable.setItems(observablelist);

I doubt, if any code can help this question.

Upvotes: 1

Views: 2306

Answers (1)

ItachiUchiha
ItachiUchiha

Reputation: 36742

In order to help you, I have created a sample. Please refer to

TableViewDeleteSample

Hope, it helps !

Upvotes: 1

Related Questions