To freeze row, set the lockedRowCount property, and to freeze column, set the lockedColumnCount property. You can set both properties to freeze row and column at the same time. This sample Grid demonstrates locking 3 rows and 2 columns.
... <DataGrid ... lockedRowCount="3" lockedColumnCount="2" ... > ... </DataGrid> ...
|lockedRowCount||This property is to set the number of rows that are to be locked.|
|lockedColumnCount||This property is to set the number of columns that are to be locked.|