In magento 2, we can add grid by mainly two types. First is to add it via the grid.php and other via xml file. Here we will go through, how to add it via grid file. You can find the sample code in the git repo .
In magento 2, the grid has been changed to another format. Now, we can add the complete grid in an xml file and it will get loaded in the admin. Let us try to add a column in admin order grid. Earlier, we can do that using block load observer and addblockafter function.