BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

jdbTable.getRowCount why is it wrong?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder DB Swing
View previous topic :: View next topic  
Author Message
cts
Guest





PostPosted: Tue Nov 14, 2006 9:13 am    Post subject: jdbTable.getRowCount why is it wrong? Reply with quote



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





PostPosted: Tue Nov 14, 2006 9:13 am    Post subject: Re: jdbTable.getRowCount why is it wrong? Reply with quote



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





PostPosted: Tue Nov 14, 2006 9:13 am    Post subject: Re: jdbTable.getRowCount why is it wrong? Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder DB Swing All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.