I shrinked my E: drive which happens to be the primary partition though Windows is not installed on it.
And now when I try to extend the D: drive using the un-allocated space the "Extend volume" option is greyed out.
The "Extend volume" option is greyed out even for C: drve. But works fine for E: drive.
I'm using "Disk Management" tool from the control panel.