Use the column's 'formatter' function to format the values.
$('#dg').datagrid({
columns:[[
{field:'itemid',title:'ItemId',width:80,
formatter:function(value,row){
return '<div style="height:25px;line-height:12px">'+value+'</div>';
}
}
]]
})
or override the '.datagrid-body td' CSS style.
<style>
.datagrid-body td{
vertical-align: bottom;
}
</style>