Board index » jbuilder » JdbTable and TableDataSet problem

JdbTable and TableDataSet problem


2003-11-21 01:31:03 AM
jbuilder20
I have a JdbTable with its TableDataSet. I am making some changes to the
column properties of the dataSet. However these changes are not being
reflected in the JdbTable.... until i hit the refresh button of the
corresponding JdbNavToolBar. But that is very time consuming cause it
synchronises my data too. Is there a way to see the column property changes
in the JdbTable without having to refresh my dataset? The following is the
relevant extract from the code.
Thanks In Advance
jdbTable = new JdbTable();
...
TableDataSet tableDataSet = new com.borland.dx.dataset.TableDataSet();
...
jdbTable.setDataSet(tableDataSet);
...
tableDataset.getColumn(i).setEditable(false);
tableDataset.getColumn(i).setReadOnly(true); //Changes are not reflected in
JdbTable until a refresh happens
 
 

Re:JdbTable and TableDataSet problem

I crudely solved the problem by resetting the dataSet each time i made a
change in the column properties
jdbTable = new JdbTable();
...
TableDataSet tableDataSet = new com.borland.dx.dataset.TableDataSet();
...
jdbTable.setDataSet(tableDataSet);
...
tableDataset.getColumn(i).setEditable(false);
tableDataset.getColumn(i).setReadOnly(true); //Changes are not reflected in
JdbTable
jdbTable.setDataSet(new TableDataSet()); // veruy crude solution.. any other
hints??
jdbTable.setDataSet(tableDataset);
"Patrick" < XXXX@XXXXX.COM >wrote in message
Quote
I have a JdbTable with its TableDataSet. I am making some changes to the
column properties of the dataSet. However these changes are not being
reflected in the JdbTable.... until i hit the refresh button of the
corresponding JdbNavToolBar. But that is very time consuming cause it
synchronises my data too. Is there a way to see the column property
changes
in the JdbTable without having to refresh my dataset? The following is the
relevant extract from the code.

Thanks In Advance
jdbTable = new JdbTable();

...

TableDataSet tableDataSet = new com.borland.dx.dataset.TableDataSet();

...

jdbTable.setDataSet(tableDataSet);

...

tableDataset.getColumn(i).setEditable(false);

tableDataset.getColumn(i).setReadOnly(true); //Changes are not reflected
in
JdbTable until a refresh happens