How to get text from selected row in datagridview?
I have a data grid view that displays data from a SQL table.
I need to get the text from a specific column in the selected row on a mousecli开发者_高级运维ck to use it in a new SQL query.
How do I do that in vb.net?
I solved it with this:
(Datagridview1.Item("Coloumname", e.RowIndex).Value.ToString)
精彩评论