public void actualizarfatagridorden() { DataTable dt = mo.orden(); Dgb_ordenesPendientes.DataSource = dt; int head = 0; while (head < mo.contarCampos(tabla)) { Dgb_ordenesPendientes.Columns[head].HeaderText = aliasC[head]; head++; } }