Спасибо, ребята! Я понял это
con.Open ();
using (cmd = new SqlCommand("Insert Into Rent(toolId, customerId, custName,
Fee, date, dueDate) Значения ('"+ toolIdComboBx.Text +"', '"+ custIdTxtBx.Text + "','" +
custNameTxtBx.Text + "','" + feeTxtBx.Text + "','" + dateTimePicker2.Text + "','" +
dateTimePicker1. Текст + "')", con))
{
cmd.ExecuteNonQuery();
}
using (cmd = new SqlCommand("Update Inventory Set Available = 'No' Where ToolId = '" + toolIdComboBx.Text + "' ", con))
{
cmd.ExecuteNonQuery();
};
con.Close();
DisplayData();