Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

291
Views
material ui datagrid a status menu in table cell

I would like to add a column like Filled Status

But I cannot figure out how to do it from the docs, I feel like I have to use renderCell when setting up the column but I can't see how to accomplish it.

https://mui.com/components/data-grid/demo/

https://mui.com/components/data-grid/columns/

enter image description here

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I recommend you use the renderCell property, which is more effective for substituting the content of a cell.

<DataGrid rows={[]} columns={[
  {
     field:"status",
     align:"center",
     headerName:"User status",
     renderCell({ row }){
        return <Menu>
          <MenuItem children="ACTIVE"/>
          <MenuItem children="INACTIVE"/>
         </Menu>
     }
  }
]} />
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!