예제 #1
0
        private void checkInv_btn_Click(object sender, EventArgs e)
        {
            this.Hide();
            Inv_table inv_Table = new Inv_table();

            inv_Table.Show();
        }
예제 #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            Inv_table main = this.Owner as Inv_table;

            if (main != null)
            {
                for (int i = 0; i < main.Inv_dataGridView.RowCount; i++)
                {
                    main.Inv_dataGridView.Rows[1].Selected = false;
                    for (int j = 0; j < main.Inv_dataGridView.ColumnCount; j++)
                    {
                        if (main.Inv_dataGridView.Rows[i].Cells[j].Value != null)
                        {
                            if (main.Inv_dataGridView.Rows[i].Cells[j].Value.ToString().Contains(tbStr.Text))
                            {
                                main.Inv_dataGridView.Rows[i].Selected = true;
                                break;
                            }
                        }
                    }
                }
            }
        }