Solved

TwwDbGrid.SelectedList.Count not working

Posted on 2006-10-25
5
765 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 500 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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

734 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