Example #1
0
        public void HienthiBnDataGridview(DevComponents.DotNetBar.Controls.DataGridViewX dg, string str)
        {
            System.Windows.Forms.BindingSource bs = new System.Windows.Forms.BindingSource();
            DataTable tbl = data.DanhsachNguoiDung(str);

            bs.DataSource = tbl;
            //bn.BindingSource = bs;
            dg.DataSource = bs;
        }