예제 #1
0
        private void txtPretraga_TextChanged(object sender, EventArgs e)
        {
            DataTable     dt     = new DataTable();
            SqlDataReader reader = SqlHelper.ExecuteReader(SqlHelper.GetConnectionString(), CommandType.Text, property.GetSearchQuery(txtPretraga.Text));

            dt.Load(reader);
            reader.Close();
            dgvPrikaz.DataSource = dt;
        }