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
Solved

return actual value of (X,Y) -vb6

Posted on 2006-07-18
1
149 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
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
vb6 programatically bring window to front 8 74
Question about INSTR  - need to extract data MS ACCESS query 6 57
Problem to With line 4 63
RUNRMTCMD from AS/400 12 68
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
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…

792 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