How to hide/show and Enable/Disable Data Table "SPDataTable" like any control

Normally i use this script to hide or show a certain control:

And i use this script to disable or enable the control:
fd.field(‘ControlName’).disabled = true;

What about the Data Table “SPDataTable”
How to hide and show???
Enable and Disable???

Dear @gkhadra,

Please try the following code:


fd.control("SPDataTable0").readonly = true;

Thanks AlexZver it works, i have another issue on hiding controls within an accordian container i will open another topic for this issue thank you for your help