Hello,

I have a datagridview looking like this:

ID | Value
1 | 6
2 | 5
3 | 1
4 | 12

How gan I get the value where ID is MAX (12)?

I tried: dgv.item(1,dgv.rowcount - 1).value

This doesn't work.

How can I do this?

Thanks in advance...