Adding a Tag to each row in a flexgrid is this possible.

Posted on 2004-10-29
Last Modified: 2013-12-26
I m filling a grid but now for each row i need to add more information than the actual text.

Does the msFlexGrid provide a tag for each row? I could not find it?

Can somebody provide a small example if it is possible?

thanks a lot

Question by:Gabriel_Brienza
    LVL 6

    Expert Comment

    if you are talking about adding more information in the grid that you don't want displayed, you can easily set the column width to 0 so that it won't be showed with the other data on the grid.

    i usually use this technique when working with flexgrids. when i populate a flexgrid based on a recordset, i usually put the ID in col 0 and set its width to 0. so, when i access the row, i know the corresponding ID of the record.

    LVL 1

    Accepted Solution


    PePi's answer is the best way, but alternatively, you could also declare a simple array to store your extra data in.

    Dim RowTags() As String
    ReDim RowTags(0 To FlexGrid1.Rows - 1) As String

    And then simply RowTags(FlexGrid1.Row) = "Whatever"

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Shellfire Box VPN + Lifetime Subscription

    The Shellfire Box easily connects all of your devices, even those that don't offer the possibility to establish a safe vpn connection. Access blocked content and surf safely, no matter where in the world you are located.

    When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
    Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
    As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
    Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

    857 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

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now