I work on asp.net razor page i face issue when convert html table to datatable jquery
design of table width and cell heigh and size of table changed after convert it to datatable using jquery
Desired result to be datatable after converted and original html table be same on every thing width and size and heigh
so what is issue i don't know
i convert table to datatable for pagination and search and filter and sort etc .
what i tr as below
1- html table before convert it to datatable using jquery
2- convert html table aboe to datatable with jquery for pagination
so what i do to fix this issue please
so why design change after convert html table to datatable using jquery

Amit MohantyPosted Feb 20, 2024, 6:16 AM
You can disable DataTable's default styling by setting bAutoWidth to false to disable automatic column width in your DataTable initialization:
After initializing the DataTable, you can adjust the CSS to match your desired design. You may need to override DataTable's default styles or adjust your own styles to accommodate DataTable's structure.