Wrox Programmer Forums
|
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 12th, 2004, 06:00 AM
Authorized User
 
Join Date: Jun 2003
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
Default true dbgrid pro 6

I have the following code:
 with truegrid
    For i = 0 To .VisibleRows - 1

      If .IsSelected(i) Then
        If .Columns(9).Text = "Master" Then
          iCount = iCount + 1
        End If
      End If
    Next
 end with

My selbookmarks count is correct. The DataMode for the Grid is 4.

The problem I have is that the IsSelected Method doesn't seem to work. It drops into the next test regardless of wether the row has been selected or not.

Help Please.

 
Old July 14th, 2004, 11:05 PM
Authorized User
 
Join Date: Jul 2004
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

check the SelectionMode property







Similar Threads
Thread Thread Starter Forum Replies Last Post
C++ Builder 6 - Getting a value from a DBGRid rowin C++ Programming 0 June 1st, 2006 10:55 AM
How to edit in dbgrid? d_saikrishnan Pro VB 6 0 May 12th, 2006 10:51 AM
How to edit in dbgrid? d_saikrishnan Beginning VB 6 0 May 12th, 2006 10:49 AM
C++ Builder 6 - DBGrid rowin C++ Programming 0 April 13th, 2006 06:39 AM
True DBGrid 8.0 KalluMama Pro VB 6 1 August 10th, 2004 01:39 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.