How to hide specific column in specific datatable?

Hi,

I want to hide a column in specific datatable.
I've found this post Hide Columns in a DataTable very attractive, but unfortunately I have 2 datatables on one form and this:
$('td:nth-child(6),th:nth-child(6)').hide();
hides 6th column on both datatables.
Can I anyhow filter this by name of control?

Regards
Marcin

Ok, I solved it by myself :slight_smile:
This command works:
$(fd.control('dtTable').$el).find('td:nth-child(6),th:nth-child(6)').hide();

3 Likes