Dear All Experienced VB.NET Programmers,
I am new to vb.net and I am using VS 2005 Professional and have a DGV bound to a table.
I can upload my binary data to the DB Table and display the results in the DGV.
I have a textbox called textbox1 and pass the textbox1.text to the sql query to download the related data from the DB.
e.g
Dim da As New SqlDataAdapter("SELECT ImgField FROM MyImages WHERE ID = " & TextBox1.Text, con)
I click the download button and the file downloads.
Is there a way I can dynamically get the ID from the Click event on the DGV.
I hope this makes sense. I can elaborate more if needed.
I am new to vb.net and I am using VS 2005 Professional and have a DGV bound to a table.
I can upload my binary data to the DB Table and display the results in the DGV.
I have a textbox called textbox1 and pass the textbox1.text to the sql query to download the related data from the DB.
e.g
Dim da As New SqlDataAdapter("SELECT ImgField FROM MyImages WHERE ID = " & TextBox1.Text, con)
I click the download button and the file downloads.
Is there a way I can dynamically get the ID from the Click event on the DGV.
I hope this makes sense. I can elaborate more if needed.