예제 #1
0
        private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            int temp = e.RowIndex;

            if (temp != -1)
            {
                string t = dataGridView1.Rows[temp].Cells[0].Value.ToString();
                dataGridView2.DataSource = Mon_BUS.LoadDSMonTheoLoai(t);
                lbLoaiMon.Text           = t;
            }
            else
            {
                return;
            }
        }