Thank you, Banie.
That means your ipad can be unlocked only after restoring it. Unfortunately, restore is the only solution. This would delete everything off it, but you can get back all your purchases. (if you know the password XXXXX if your ipad allows you to enter the password XXXXX sometime, you can try the wait).
You would need to place the ipad into recovery mode and then restore it.
Open itunes in the computer and connect the ipad. Now, on the ipad, press and hold the power button and the home button together until you see an apple logo. The very moment you see the apple logo, let go off the power button, but keep on holding the home button for another 10-15 sec.
your computer would now give a message that it has detected an ipad in recovery mode and needs to be restored. Restore the ipad now and that should unlock the code. Here's a video for you.
By watching this, you can understand how to put the ipad into recovery mode and also how it looks like while in recovery mode.
Let me know if you find any difficulty.