repopulating a table results in an empty table

I have a problem with repopulating a table.
After I create the table and I call this function it populate the table with the rows from JobresultSet.

In a sertain point in de code I need to repopulate this table.
I first remove all the rows from the table and then I execute this function again.
But now the table stays empty. What could be the reason the the table is not repopulated?

Chris

public void buildJobsTable(Table table) {
/*
* adInteger adDBTimeStamp adDBTimeStamp adInteger adInteger adVarChar
* adInteger adLongVarChar adVarChar adVarChar
*/
try {
GetJobs(); ← connection to out server and this return a Jobresultset
} catch (ITKClientException e) {
e.printStackTrace();
}

	if (jobmeta == 0) {
		for (Column column : JobresultSet.getColumns()) {

			switch (column.getDataType()) {
			case adInteger:
				table.addContainerProperty(column.getName(), Integer.class,
						null);
				break;
			case adDBTimeStamp:
				table.addContainerProperty(column.getName(), Date.class,
						null);
				break;
			case adVarChar:
				table.addContainerProperty(column.getName(), String.class,
						null);
				break;
			case adLongVarChar:
				table.addContainerProperty(column.getName(), String.class,
						null);
				break;
			default:
				break;
			}
		}
	}

	for (Row row : JobresultSet.getRows()) {
		Object x[] = new Object[row.getFields().length]

;
int count = 0;
for (com.infor.itk.types.Field field : row.getFields()) {
x[count]
= field.getValue();
count++;
}
table.addItem(x, null);
}

	jobmeta = 1;
	JobresultSet = null;
}

Solution found.

I need first to change the Visible Columns to all colums. After that I load the data and afterwards I have to set the real visiable columns.

A little bit stupit but it did the job

Chris