I think it would still be 20g though, because as you add grain, it's going to raise the water level. The only other factor is the amount of water that the colander would displace.
So in the end, what you're looking at is the amount of space that the water + grains + colander displace - all...