>Thanks for the help there. That code worked for what I want to do. But, I have another problem with the grid.
>
>I am allowing the user to click on the heading button and I am ordering the table by the field the column is tied to. In the dynamicbackcolor, I am highlighting the currently selected row. For some indexes, this works fine. When I click on other indexes, as I move the cursor through the grid, the highlighted row becomes different than the currently select row (the row marker and focus are on a different row than is hightlighted).
>
>If you have any ideas on this problem, I would appreciate your help very much.
>
>Rob.
Rob,
Go to files\Classes section and download gridx.zip (Title "Two grid classes"). One class is current row highligthed grid. Either directly use the class or check its code to implement yours. Basically what's done is to have a custom grid property to keep current recno and match it with recno() in dynamic* expression.
Cetin