Solved

return actual value of (X,Y) -vb6

Posted on 2006-07-18
1
151 Views
Last Modified: 2010-04-30
hi,

Please assist how can we return the actual value of datagrid position (X,Y)?

i.e.
Datagrid1.ReturnValue(1,2)=Red

--------------------
green,orange
yellow,red
pink,voilet
--------------------

Thanks.
0
Comment
Question by:RyanBank
[X]
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
1 Comment
 
LVL 43

Accepted Solution

by:
TimCottee earned 500 total points
ID: 17128392
Hi RyanBank,

You can't do it that way, whilst the .TextMatrix property of the flexgrid provides this the Datagrid doesn't have this ability. You have to set the .Row and .Col properties and then read the .Text property from there:

With DataGrid1
    .Row = 1
    .Col = 2
    Msgbox .Text
End With

For example.

Tim Cottee
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

717 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