[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now


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

Posted on 2004-10-29
Medium Priority
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
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

Expert Comment

ID: 12445347
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.


Accepted Solution

J-Mik earned 80 total points
ID: 12484662

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"

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
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.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…
Suggested Courses

656 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