DataGrid REALbasic Plugin |

# DataGrid.RowIsStatic Method

This function returns true if the given row is static. (A row preserved in memory when its scrolled out of the screen)

RowIsStatic(
rowNumber as Integer) as Boolean

#### Parameters

rowNumber
  The number of that row to query.

#### Returns

Boolean
  True if the row is 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