private void rdoCategory_CheckedChanged(object sender, EventArgs e)
{
string sql = "SELECT * FROM Recipe ORDER BY CategoryDesc";
dbCommand = new OleDbCommand(sql,dbConnection);
dbAdapter.SelectCommand = dbCommand;
dbAdapter.Fill(ds, "Recipe");
dgvRecipes.DataSource = ds.Tables["Recipe"];
}
问问题
79 次