其实就是页面样式问题:下面贴代码: $(function(){
$("#test").datagrid({
title:'DataGrid Test',
iconCls:'icon-save',
width:500,
height:350,
nowrap:false,
striped:true,
//collapsible:true,
url:'<%=path%>/StudentServlet',
sortName:'name1',
sortOrder:'desc',
remoteSort:false,
idField:'name1',
frozenColumns:[[{field:'ck',checkbox:true},
                {title:'name1',field:'name1',width:10,sortable:true}]],
 columns:[[ 
                          {title:'Base Information',colspan:3}, 
                  {field:'opt',title:'Operation',width:100,align:'center', rowspan:2} 
                  ],[ 
                  {field:'name',title:'Name',width:120}, 
                  {field:'password',title:'password',width:220,rowspan:2,sortable:true}, 
                  {field:'col4',title:'Col41',width:150,rowspan:2} 
                  ]], 
                  pagination:true, 
                  rownumbers:true 
});
});页面显示:
easyui