Implement bind and unbind for TableWidget.