var datagrid;
var SBGridProperties = {};
function createGrid(){
SBGridProperties.parentid = 'SBGridArea';
SBGridProperties.id = 'datagrid';
SBGridProperties.jsonref = 'jsonData';
SBGridProperties.selectmode = 'free';
SBGridProperties.rowheader = ['seq', 'update'];
SBGridProperties.extendlastcol = 'scroll';
SBGridProperties.columns = [
{caption:['도서관명', '도서관명'], ref:'name', width:'250px', style:'text-align:center', type:'output'},
{caption:['도서관유형', '도서관유형'], ref:'type', width:'150px', style:'text-align:center', type:'output'},
{caption:['운영시작시각', '평일'], ref:'weekdayOpen', width:'180px', style:'text-align:center', type:'output', columngroup:{'weekendOpen':['운영시작시각', '주말'], 'holidayOpen':['운영시작시각', '공휴일']}},
{caption:['운영종료시각', '평일'], ref:'weekdayClose', width:'180px', style:'text-align:center', type:'output', columngroup:{'weekendClose':['운영종료시각', '주말'], 'holidayClose':['운영종료시각', '공휴일']}},
{caption:['자료수(도서)', '자료수(도서)'], ref:'num', width:'150px', style:'text-align:center', type:'output'}
];
datagrid = _SBGrid.create(SBGridProperties);
};
function fnGetColumnGroup() {
var nCol = datagrid.getCol();
var columngroup = JSON.stringify(datagrid.getColumnGroup(nCol));
alert(columngroup);
}