I want to know the differece of the multiple ways we can create an admin grid in Magento 2.

Some people says that the best way is with the php, because is the best to debug, but i find more responses that are only in xml that it make me think that it's the best way.

In this page i see different ways

and which is the best and what is the difference ?


I see most of people use the uicomponent. It's better solution?

1 Answer 1


That is depend on the requirement

If you need column visibility adjustable using column control and filter in separate dropdown rather than in grid and also search by keyword functionality then ui-component is better solution for this.

If you need to show only data without any search and any other operation on grid then simple php grid is better for it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.