Esempio n. 1
0
        private void tbxSearch_TextChanged(object sender, EventArgs e)
        {
            string fname = tbxSearch.Text;

            if (fname == "")
            {
                UpdateDataGridView();
            }
            else
            {
                List <PositionLog> eList = new List <PositionLog>();
                eList.Add(managment.GetPositionLogByName(fname));
                BindingList <PositionLog> pos    = new BindingList <PositionLog>(eList);
                BindingSource             source = new BindingSource(pos, null);
                dataGridView3.DataSource = source;
            }
        }