I am trying to disable a field DateField (cell) of gridpanel depending of other field TextField.

If the value of TextField exist in the database, the field date (DateField) would be enable, else disable. I need to do this from the code behind.

Is there an easy way to achieve this?