Specifying which columns can be dragged

Top  Previous  Next

 

You can control which columns can be dragged/reordered by overriding AdvancedTableHeader's method:

 

public boolean isReorderingAllowed(int column);

 

, and return true or false accordingly.

 

Example: Make the second column not reorderable:

 

public boolean isReorderingAllowed(int column) {

       if (column == 1) return false;

       return true;

}