Ejemplo n.º 1
0
        public void ShowEmployee()
        {
            string          ShowStr = "select * from member";
            DatabaseControl dc      = new DatabaseControl();
            DataTable       d1      = new DataTable();

            d1 = dc.ExecuteQuery(ShowStr);
            if (d1 != null && d1.Rows.Count > 0)
            {
                dataGridView1.DataSource = d1;    //将查询结果放入到dataGridView;
                           
            }
        }