Hi all,
I want to know how can I map the data inside datarow() into datagridview???
Here is detail:
I have a dataTable which contains data from DB.
I use a search function to search this table.
Code:Dim dRow() as DataRow = dtStudent.Select("sID='" & txtsID.Text.Trim & "'") If dRow.Length <> 0 Then ' This not working!! ' dgView.DataSource = dRow(0) ' This also not working!! ' dgView.DataSource = dRow(0).Table End If
I can use a stored procedure and go back the DB loop again.
But since I have all the data in my memory. I want to search this DataTable and then display it in grid instead of going back to server and get the data.
Can anybody help me??
Thanks.
scsfdev





Reply With Quote
