Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

218
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda