Try this,
string a = Convert.ToString(textBox1.Text);
string b = Convert.ToString(textBox2.Text);
try
{
string str = "select propno,owner,address,phoneno,price,status,dimension,type from property where price between " + a + " and " + b ;
OleDbDataAdapter DAap = new OleDbDataAdapter(str, connString);
DataSet DS = new DataSet();
DAap.Fill(DS, "Property");
DataTable DT = DS.Tables[0];
dataGridView1.DataSource = DT;
}
catch (Exception ex)
{
MessageBox.Show(ex.Message.ToString(), "Real Estate... ", MessageBoxButtons.OK, MessageBoxIcon.Error);
}