Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

TwwDbGrid.SelectedList.Count not working

Posted on 2006-10-25
5
Medium Priority
?
781 Views
Last Modified: 2010-05-18
I am using D5 with InfoPower's TwwDbGrid.  I have enabled the multi-select option but whenever I try to access the SelectedList.Count property, no matter how many records I have selected, the value returned toggles back and forth between 0 and 1.  Any ideas what might be causing this?
0
Comment
Question by:bjones8888
  • 3
  • 2
5 Comments
 
LVL 8

Expert Comment

by:RickJ
ID: 17807926
I use TwwDBGrid and this seems to work fine for me.
At what stage are you reading the SelectedList.Count ?
Maybe post your code to make it easier to find your problem.
0
 

Author Comment

by:bjones8888
ID: 17811143
I've tried OnMultiSelectRecord, OnMouseUp, and OnKeyUp.  

I'm using an ADO connection and I noticed that the cursor type was a forward only cursor and thought that was the culprit somehow.  But even after changing that, it didn't help.

Perhaps the problem is that I'm using my own "home grown" table object (someone else wrote it for me - so I don't know everything that's under the hood).  Maybe I should try using a TAdoTable.
0
 
LVL 8

Accepted Solution

by:
RickJ earned 2000 total points
ID: 17816704
Yes, try different table object.
The selectedlist is a list of TBookmarks, so your data/table would have to support bookmarks.
Sorry for delay, I think we have a big time zone difference!!
0
 

Author Comment

by:bjones8888
ID: 17816734
RickJ,

I believe you hit it.  I suspect that bookmarks are the culprit.  TDbGrid / TTable, as well as TwwDbGrid/TwwTable work just fine.  Thanks!
0
 
LVL 8

Expert Comment

by:RickJ
ID: 17816785
Thanks, Hope I helped in some way.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

972 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question