Jacksparrow87
Technical User
Hi people,
I was hoping someone could help me out here please, on my form I have a datagrid and a button and a few labels.
What I need to do is basically display all the information on the datagrid and at the same time have a certain row in the datagrid selected. So far I have the following coding:
However what the above coding does is select the record which is correct but it only displays that row, however I want all the rows displayed but with that row selected.
Is this possible? Please help
I was hoping someone could help me out here please, on my form I have a datagrid and a button and a few labels.
What I need to do is basically display all the information on the datagrid and at the same time have a certain row in the datagrid selected. So far I have the following coding:
Code:
Dim conn As New OleDbConnection("Provider=Microsoft.Jet.Oledb.4.0;Data Source=" & Application.StartupPath & "\CNS.mdb")
Dim adapter As New OleDbDataAdapter("Select * from Log WHERE LogNumber = " & lbllog.Text & " Order By LogNumber DESC, NoteNumber DESC; ", conn)
Dim dt As New DataTable("Log")
adapter.Fill(dt)
dglog.DataSource() = dt
dt.DefaultView.AllowNew = False
However what the above coding does is select the record which is correct but it only displays that row, however I want all the rows displayed but with that row selected.
Is this possible? Please help