开发者

How to get text from selected row in datagridview?

开发者 https://www.devze.com 2023-01-16 22:48 出处:网络
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.

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)

0

精彩评论

暂无评论...
验证码 换一张
取 消