SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.onCellButtonClicked  event

DataColumn.button属性值为CellButton.ACTION时,如果点击按钮,就会触发这个事件。 

function onCellButtonClicked (grid: GridBase, index: CellIndex, button: Integer);
Returns
Void
Parameters
grid - GridBase.
包含列的网格。
index - CellIndex.
显示所点击的按钮的单元格的位置。
button - Integer.
Code -1
    grid.onCellButtonClicked = function (grid, index) {
        alert(index.column.name());
    }
See Also
onEditorButtonClicked
DataColumn
CellButton