SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.onCurrentChanging  event

入力フォーカスをもつセルの位置が変更になる直前に発生する。 

このイベントハンドラーの内で明示的にfalseをリターンすれば位置が変更にならない。 

function onCurrentChanging (grid: GridBase, newIndex: CellIndex, oldIndex: CellIndex): Boolean;
Returns
Boolean
Parameters
grid - GridBase.
newIndex - CellIndex.
oldIndex - CellIndex.
Note
Code -1
    grdMain.onCurrentChaning = function (grid, newIndex, oldIndex) {
        if (newIndex.rowIndex > 3) {
            return false;
        }
    };
See Also
onCurrentChanged
CellIndex
Examples
Hello Grid]