5
Reply

DataGridView, and how to get values

Mattias Adebahr

Mattias Adebahr

Nov 30 2009 4:52 AM
4.8k
Hi i have a problem with my DataGridView, in Windows Application Form.

I would like to get all of the coulmn values from each and every row in specified labels when i click/select all of the coulmns, or possibly one of them.

For example:
I have 3 columns: Customer ID, Name and Total Sum.
When i click/select one of these values i would like them to be listed in labels, something like this:

Customer id: 1
Name: Carl
Total Sum: 10.000

Dont really know if its possible to get all of the values in a row by clicking one of the values :) but im quiet the beginner at this still...

Hope for answer!

/Mattias


Answers (5)