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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Datagrid and dropdown list 8
Binding DataGrid to an Array 4
Wierd problem with datagrids 1
richtext in a datagrid? 2
Datagrid update 3
datagrid 1
Adding a rich text box to a datagrid 1
DataGrid 2

Back
Top