how can i retrieve data from a gridview to text box in vb.net.i want to select first row of values(suppose that contains:rollno and name)and to display in textbox1 and textbox2.ie, i want to display the values of selected rows
A:
You can try something like this
Dim d As DataTable
d = DataGridView1.DataSource
TextBox1.Text = d.Rows(0)("rollno")
astander
2009-12-12 13:40:32