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 August 6th, 2003, 08:50 AM
Registered User
 
Join Date: Aug 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default TDBgrid + groupcolumns

Hi,

I want to group 3 columns of my tdbgrid 6 in design time using the groupcolumns collection.

The code I have at the moment:
  For Each loCol In grdOpdrachten.Columns
    Select Case loCol.ColIndex
       Case aiColIndex (parameter)
          Set loColGroup = grdOpdrachten.GroupColumns.Add
           (grdOpdrachten.GroupColumns.Count, loCol)
          With loColGroup
              .Caption = loCol.Caption
              .DataField = loCol.DataField
          End With
          loCol.Visible = False

          Exit For
     End Select
  Next loCol

Has anyone an idea. Thanx.










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