To control the width of the table and prevent the horizontal scroll bar from appearing in the table, an attribute is provided on the API: fitColumns, the default is fasle. The usage is as follows
<table class="easyui-datagrid" style="width:400px;height:250px" data-options="fitColumns:true"> </table>