DataGridview in vb.net 2.0

Hi,

How can i get selected roe values from a datagridview control in vb.net?

Please send me reply.

[117 byte] By [srinivasintouch] at [2007-12-24]
# 1

You can get them from the datagridview's selected rows collection



For Each dgr As DataGridViewRow In DataGridView2.SelectedRows
For Each c As DataGridViewCell In dgr.Cells
Debug.Print(c.Value.ToString)
Next
Next


KenTucker at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic Language...