Hello Developer, Hope you guys are doing great. Today at Tutorial Guruji Official website, we are sharing the answer of Material UI DataGrid – how to tell which rows user has selected? without wasting too much if your time.
The question is published on by Tutorial Guruji team.
The question is published on by Tutorial Guruji team.
const handleRowSelection = (e) => { setSelection(e.selectionModel); console.log(select); // <-- The state is still not updated }
const handleRowSelection = (e) => { setSelection(e.selectionModel); } useEffect(() => { console.log(select); // <-- The state is updated }, [select]);
We are here to answer your question about Material UI DataGrid – how to tell which rows user has selected? - If you find the proper solution, please don't forgot to share this with your team members.