var datagrid;
var SBGridProperties = {};
var roundData = [{"data":"45.4565"},
{"data":"45.1951"},
{"data":"45.5252"},
{"data":"45.3318"},
{"data":"45.309"},
{"data":"45.2781"},
{"data":"10.1579"},
{"data":"24.8891"}];
function createGrid(){
SBGridProperties.parentid = 'SBGridArea';
SBGridProperties.id = 'datagrid';
SBGridProperties.jsonref = 'roundData';
SBGridProperties.rowheader = ['seq','update'];
SBGridProperties.selectmode = 'free';
SBGridProperties.extendlastcol = 'scroll';
SBGridProperties.columns = [
{caption : ['원본 데이터'], ref : 'data', width : '120px', style : 'text-align:center', type : 'output'},
{caption : ['소수점 2자리 버림'], ref : 'data', round : {type : 'floor', position : -2}, width : '120px', style : 'text-align:right', type : 'output' },
{caption : ['소수점 3자리 버림'], ref : 'data', round : {type : 'floor', position : -3}, width : '120px', style : 'text-align:right', type : 'output' },
{caption : ['소수점 3자리 올림'], ref : 'data', round : {type : 'ceil', position : -3}, width : '140px', style : 'text-align:right', type : 'output' },
{caption : ['소수점 4자리 올림'], ref : 'data', round : {type : 'ceil', position : -4}, width : '140px', style : 'text-align:right', type : 'output' },
{caption : ['소수점 1자리 반올림'], ref : 'data', round : {type : 'round', position : -1}, width : '140px', style : 'text-align:right', type : 'output' },
{caption : ['소수점 2자리 반올림'], ref : 'data', round : {type : 'round', position : -2}, width : '140px', style : 'text-align:right', type : 'output' }
];
datagrid = _SBGrid.create(SBGridProperties);
};