>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.
BTW the other grid class in that zip is multiselect grid. In that, there is code for changing order as header clicked and highlighting of "selected" rows. That code could be furnished and combined with highlighted to make headers react to clicks for reordering + keep only current row highlighted. Additionally it demonstrates adding your own header and textbox class to grid.
Cetin