Disable collumn in datagrid <column property="reasonLock" header="Lý do phong tỏa"/> <column property="reasonUnlock" header="Lý do giải tỏa "/>

I have two columns like this, and I want to hide one and show the other flexing based on status. How can I do

Hi!

You can initially specify both columns and then hide the unnecessary one in the controller depending on the status using the setVisible method on the column instance.
You can also add the required column programmatically using the Grid#addColumn method.

Best regards,
Dmitriy