DataGrid REALbasic Plugin

DataGrid.MakeRowStatic Method

This function is used to change a dynamic row static. That is making a row which is not stored in memory except when visible on the screen to be stored always in memory.

MakeRowStatic(
   rowNumber as Integer)

Parameters

rowNumber
The number of that row that should be made static.

Remarks

Static Rows are rows that are stored in memory instead of only cached while displayed on the screen like the DataGrid usually does. There can be many reasons for using static rows, one purpose for example would be when a user clicks a checkbox in a row then the row would be changed to a static row, so that the new value of the checkbox will be stored after the row gets scrolled out of scope, and without having to do a requery. Then when you are ready to save the new states to the database then you can use the GetStaticRows function to get the index of all those rows which have been modified in such way.

See Also

DataGrid Control