var listview=Forguncy.Page.getListView("表格1");
var spread=listview.getControl();
var sheet = spread.getActiveSheet()
sheet.bind(GC.Spread.Sheets.Events.SelectionChanged, function(a,b){
var row=b.sheet.getActiveRowIndex()+1;
var col=b.sheet.getActiveColumnIndex()+1;
var val=listview.getValue(row-1,col+1); //获取选中的单元格的值
});
|