not work columnheader and visible Help

I write the following:


public static final Object[] NATURAL_COL_ORDER_UNIDAD = new Object[]
{
		 "idUnidad,nombre,direccion"}; 
	public static final String[] COL_HEADERS_ENGLISH_UNIDAD = new String[]
 {
		 "ID ","Nombre " };
...........................................
 setColumnHeaders(ControladorDominio.COL_HEADERS_ENGLISH_UNIDAD);
  setVisibleColumns(ControladorDominio.NATURAL_COL_ORDER_UNIDAD);
 ..................................................

error
wacko::wacko:
Ids must exist in the Container or as a generated column , missing id: idUnidad,nombre,direccion

which is the correct way to eye the one or more columns
:

Hi,

As the error message says, the container of your table doesn’t contain these properties: idUnidad,nombre,direccion. So, make sure that your container contains these properties. Also if yout set a container for the table by using the setContainerDataSource() method, you have to do it before calling setVisibleColumns.

Cheers,
-Henri

Thanks, I will review again…ok Thanks-_-