pinoyz,
For the first question, connect the DataGrid to Database by code is as follows:
Dim connection As New SqlConnection(ConnectionString)
connection.Open()
Dim adapter As New SqlDataAdapter(GetAllAuthorsSqlString, connection)
Dim dataset As New DataSet
adapter.Fill(dataset)
adapter.Dispose()
connection.Close()
Dim table As DataTable = dataset.Tables(0)
AddHandler table.ColumnChanged, New DataColumnChangeEventHandler(AddressOf ColumnChanged)
datagridAuthors.DataSource = table
Suppose you have the exact connection string and query command. When you use the ComboBox with the selection, it means changing the query condition, so just use the right SQL statement to make it suitable to your keywords.