SMART datagrid v.1 > Classes > GridBase
DataLudi.GridBase.onCurrentChanging event
入力フォーカスをもつセルの位置が変更になる直前に発生する。
このイベントハンドラーの内で明示的にfalseをリターンすれば位置が変更にならない。
function onCurrentChanging (grid: GridBase, newIndex: CellIndex, oldIndex: CellIndex): Boolean;
- Returns
- Boolean
- Parameters
- grid - GridBase.
- newIndex - CellIndex.
- oldIndex - CellIndex.
- Note
- パラメーターnewIndex、oldIndexの値を変更したり、保管してはいけない。
Code -1
grdMain.onCurrentChaning = function (grid, newIndex, oldIndex) {
if (newIndex.rowIndex > 3) {
return false;
}
};
- See Also
- onCurrentChanged
- CellIndex
- Examples
- Hello Grid]