Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

return actual value of (X,Y) -vb6

Posted on 2006-07-18
1
Medium Priority
?
153 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 2000 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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

636 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