return actual value of (X,Y) -vb6

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.
RyanBankAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
TimCotteeConnect With a Mentor Commented:
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
All Courses

From novice to tech pro — start learning today.