getting exact cell text of datagrid

  • Thread starter Thread starter niceguy
  • Start date Start date
N

niceguy

Hi


I was wondering if its possible to get the exact displayed text from a cell
in a datagrid.

I need to get the displayed text and not any 'real' database value or
anything that the cell might contain in the background.

I've tried getting to get the text through the datagrid's control
collection, but no success ...


Does anyone have any clues ?


Thanx !!
 
Hi again

Just ignore my question, I found it! I can get any cell value through the
datagrid's Item property.

Live can be so simple ;-)

Thanx anyway...
 
.. . . Example below.
Age height Weight(kg)
12 1.75 95
19 2.0 55
25 1.9 501

Dim x, y as int32
x=2
y=2

'Displays "501"
MessageBox.Show(datagrid1.Item(x, y).ToString() )
Regards - OHM
 
Back
Top