Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

209
Vistas
Is there a way to back to line dynamically when there is not enough space while using material ui datagrid componenet?

I'm using datagrid component from material ui, I bring some data from a database and try to pass it to the datagrid component. Some fields contain long strings and not all of them appear in the column (Titre PFE) . enter image description here

What I'm trying to do is to display something like that :

Développement d’une application mobile
ecommerce

     <div style={{ height: 515, width: "100%" }}>
            <DataGrid
              rows={pfeList}
              columns={columns}
              pageSize={8}
              autoPageSize
              rowsPerPageOptions={[7]}
            />
          </div>
  const columns = [
    {
      field: "titre",
      headerName: "Titre PFE",
      headerAlign: "center",
      width: 380,
    },
.
.
.
.
.
];

What should I fix here to get the desired result?

almost 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

In order to do that properly, you need to make the heights of the rows dynamic. You can add getRowHeight={() => "auto"} prop to DataGrid to make rows dynamic.

You can take a look at this sandbox for a live working example of this solution.

almost 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda