0
    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"];



    }
4

0 回答 0