Wrox Programmer Forums
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning 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 1st, 2005, 04:21 AM
Registered User
 
Join Date: Jun 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default MSHFlexGrid Headings

I want to fill the flex grid through code. My code is below. The headings are added alright, but on the second row. So I have one blank grey row, then the next grey row has the headings. Then the data appears correctly.
How do I get the headings on the first row? Is there some band setting I must use?
Thanks
Diarmuid

Code:
    
'Set the column headings
gridData.ColHeader(0) = flexColHeaderOn
For lColCount = 1 To lCols
   gridData.ColHeaderCaption(0, lColCount) = & _
                rsTemp.Fields(lColCount - 1).Name
Next

Awesomo
 
Old August 6th, 2006, 05:21 AM
Registered User
 
Join Date: Aug 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

See will this helps you

        With datagrd
            .FixedCols = 0
            .FixedRows = 0
            .ColHeader(0) = flexColHeaderOn
            .ColHeaderCaption(0, 1) = "My Heading"
        End With


Allrounder
Have a Nice Day!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to Autofill headings sarahb Excel VBA 4 March 18th, 2008 03:35 PM
column headings mary555 Crystal Reports 0 July 18th, 2006 12:30 PM
Hiding tab page headings badgolfer VS.NET 2002/2003 1 June 15th, 2005 04:29 PM
Table headings don't appear correctly Ben Horne Dreamweaver (all versions) 5 September 14th, 2004 08:45 AM
Field Headings in Crystal Reports Liz Crystal Reports 2 July 20th, 2004 10:01 AM





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