var datagrid;
var SBGridProperties = {};
var textAreaTemp = [{},{},{},{},{},{},{},{},{}];
function createGrid(){
SBGridProperties.parentid = 'SBGridArea';
SBGridProperties.id = 'datagrid';
SBGridProperties.jsonref = 'textAreaTemp';
SBGridProperties.rowheader = ['seq','update'];
SBGridProperties.selectmode = 'free';
SBGridProperties.fixedrowheight = 50;
SBGridProperties.tooltip = true;
SBGridProperties.columns = [
{caption : ['button\n( buttonvalue )'], ref : 'temp1', width : '500px', style : 'text-align:center', type : 'button', typeinfo:{buttonvalue: '버튼'}},
{caption : ['button\n( buttonclass )'], ref : 'temp2', width : '200px', style : 'text-align:center', type : 'button' , typeinfo : {buttonclass: 'customBtn'}},
{caption : ['button\n( callback )'], ref : 'temp3', width : '200px', style : 'text-align:center', type : 'button' , typeinfo : {buttonvalue: '이벤트 발생', callback: buttonEvt}}
];
datagrid = _SBGrid.create(SBGridProperties);
};
function buttonEvt(){
var nRow = datagrid.getRow();
var nCol = datagrid.getCol();
alert("선택한 행 : "+ nRow +", 선택한 열 : " + nCol+ "입니다.");
}