 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
cts Guest
|
Posted: Tue Nov 14, 2006 9:13 am Post subject: jdbTable.getRowCount why is it wrong? |
|
|
I have a jdbTable with 3 rows
System.out.println("BBB rowcnt " + jdbTable1.getRowCount());
returns 1
why is this function not correct? |
|
| Back to top |
|
 |
ctskinner Guest
|
Posted: Tue Nov 14, 2006 9:13 am Post subject: Re: jdbTable.getRowCount why is it wrong? |
|
|
I decided to look at dataloaded event:
public void proj_dataLoaded(LoadEvent loadEvent) {
System.out.println("loaded rowcnt " + jdbTabla.getRowCount());
}
Sadly this gives rowcount of zero
If i open the dataset I still get rowCount zero.
What do I need to do to 'load' the data?
nb the data is on hte screen, a dataloaded event is fired, but the rowcount is zero. There must be some kind of command that says
"load up hte table, really, I do want it, yes I really mean it, I want rows PLEaseeeeeeeeeee" |
|
| Back to top |
|
 |
cts Guest
|
Posted: Tue Nov 14, 2006 9:13 am Post subject: Re: jdbTable.getRowCount why is it wrong? |
|
|
There is some initialization that is needed.
If I add a Mouseadapter, at the time I click on a column,
the rowcount is correct, and I can get and set vlues in cells.
What extra initialisation must I do, If I want to see getRowCount > 0 WITHOUT clicking a mouse event? |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|