Get the column number by propertyName from Grid using Vaadin 7.4.9 -


i want column number grid. how can ?

grid grid = new grid(); indexedcontainer container = new indexedcontainer(); grid.setcontainerdatasource(container); container.addcontainerproperty("name", string.class, ""); container.addcontainerproperty("surname", string.class, ""); container.addcontainerproperty("age", integer.class, 0); 

i solution:

list list = grid.getcolumns();   for(int = 0; < list.size(); i++)     system.out.println(list.get(i) + " on position: " + i); 

solution is:

list list = grid.getcolumns();  for(int = 0; < list.size(); i++) system.out.println(list.get(i) + " on position: " + i); 

Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -