Yes, you are missing one line of code. You forgot to bind the data to the grid. You just set the data for grid. You need to trigger it's bind method.
Put this at the end:
datagridview1.Databind();
This should do.
UPDATE:
For Winforms:
Datagrid sample[
^]