Example #1
0
        private void frmCliente_Load(object sender, EventArgs e)
        {
            //OBTIENE EL LISTADO DE CLIENTES REGISTRADOS
            //A TRAVES DEL SERVICIO SOAP CLIENTES - ListarClientes()
            ClientesServiceReference.ClientesClient client = new ClientesServiceReference.ClientesClient();
            dataGridView1.DataSource = client.ListarClientes();

            dataGridView1.Columns["RUC"].DisplayIndex = 1;
            dataGridView1.Columns["RUC"].HeaderText   = "Número RUC";
            dataGridView1.Columns["RUC"].Width        = 100;
            dataGridView1.Columns["RUC"].DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;

            dataGridView1.Columns["RazonSocial"].DisplayIndex = 0;
            dataGridView1.Columns["RazonSocial"].HeaderText   = "Razón Social";
            dataGridView1.Columns["RazonSocial"].Width        = 200;

            dataGridView1.Columns["Correo"].DisplayIndex = 2;
            dataGridView1.Columns["Correo"].HeaderText   = "Correo Electrónico";
            dataGridView1.Columns["Correo"].Width        = 200;

            dataGridView1.Columns[0].Visible = false;
            dataGridView1.CurrentCell        = dataGridView1.Rows[0].Cells[1];
        }
Example #2
0
 private void frmCliente_Load(object sender, EventArgs e)
 {
     ClientesServiceReference.ClientesClient client = new ClientesServiceReference.ClientesClient();
     dataGridView1.DataSource = client.ListarClientes();
 }