public frmDetallesCliente(string id) { InitializeComponent(); var bd = new clsBD(); var tablaCliente = bd.select("nombreCliente NOMBRE", "Cliente", "codigoCliente=" + id); var tablaEstilos = bd.selectEstilos(id); var nombre = tablaCliente.Rows[0]["NOMBRE"].ToString(); dgvEstilos.DataSource = tablaEstilos; lblNombre.Text = nombre; }