please refer the below thread for removing empty columns.
after removing you can get the column count using below syntax.
yourdatatable.columns.count
hope it helps!!!
please refer the below thread for removing empty columns.
after removing you can get the column count using below syntax.
yourdatatable.columns.count
hope it helps!!!