Hi,

I am using VB.NET 2008 and I have made a connection to an SQL Server database using code. I have managed to populate a datagridview control with the contents of a selected table using a query that I passed in. What I want to do now is set a text box to display a selected field from the query using code.

Can anyone tell me how to do this? I used to do this using an adodb.recordset in vb6 but I am new to VB.NET

Thanks