Esempio n. 1
0
        private void GrillaContactos_CellChange(object sender, CellEventArgs e)
        {
            ItemSocioNegocioContacto Item = (ItemSocioNegocioContacto)e.Cell.Row.Tag;

            switch (e.Cell.Column.Key)
            {
            case colContactoNombre:
                Item.Nombre = Convert.ToString(e.Cell.Text);
                break;

            case colContactoCargo:
                Item.Cargo = Convert.ToString(e.Cell.Text);
                break;

            case colContactoTelefono:
                Item.Telefono = Convert.ToString(e.Cell.Text);
                break;

            case colContactoCorreo:
                Item.Correo = Convert.ToString(e.Cell.Text);
                break;

            default:
                break;
            }
            this.MostrarContacto(e.Cell.Row);
        }
Esempio n. 2
0
        public void MostrarContacto(UltraGridRow Row)
        {
            ItemSocioNegocioContacto item = (ItemSocioNegocioContacto)Row.Tag;

            Row.Cells[colContactoNombre].Value   = item.Nombre;
            Row.Cells[colContactoCargo].Value    = item.Cargo;
            Row.Cells[colContactoCorreo].Value   = item.Correo;
            Row.Cells[colContactoTelefono].Value = item.Telefono;
        }