var datagrid;
var SBGridProperties = {};
function createGrid(){
SBGridProperties.parentid = 'SBGridArea';
SBGridProperties.id = 'datagrid';
SBGridProperties.jsonref = 'ct_data.resources';
SBGridProperties.rowheader = ['seq','update'];
SBGridProperties.selectmode = 'free';
SBGridProperties.emptyareaindexclear = false;
SBGridProperties.columns = [
{caption : ['학원명'], ref : 'academy', width : '168px', style : 'text-align:left', type : 'input'},
{caption : ['설립자(성명)'], ref : 'name', width : '163px', style : 'text-align:left', type : 'output'},
{caption : ['전화번호'], ref : 'phone', width : '120px', style : 'text-align:center', type : 'input'}
];
datagrid = _SBGrid.create(SBGridProperties);
datagrid.bind('click', 'gridClick');
};
function gridClick(){
var nRow = datagrid.getRow();
var nCol = datagrid.getCol();
$('.nRow').text(nRow);
$('.nCol').text(nCol);
};