It is not hard at all!!!
If you have XNA installed, just try this example:

XNA HeightmapCollision.Zip 1MB