private void frmain_Load(object sender, EventArgs e) { gvUsers.AutoGenerateColumns = false; Contacts.Service1 s = new Contacts.Service1(); BindingSource b = new BindingSource(); b.DataSource = s.GetUser(); gvUsers.DataSource = b; }
private void frmain_Load(object sender, EventArgs e) { gvUsers.AutoGenerateColumns = false; Contacts.Service1 s = new Contacts.Service1(); BindingSource b = new BindingSource(); b.DataSource = s.GetUser(); gvUsers.DataSource = b; }