How can i make particular events readonly?

Hi,
I want to make certain events in readonly mode based on the status from database.Is this possible ? If possible how can i implement this?

Thanks in advance
Shiju

Check
samples\03_extensions\14_readonly_event.html