MSMit


I use Html table in .Net 2 WebBrowser component in Windows Forms. What I want is to mimic grid behaviour as far as user keystrokes are concerned. E.g. pressing down arrow key makes next row in html table highlighted and deselects currently highlighted . There is no problem with implementing this functionality via onkeydown event in a table , but can't figure out how to keep highlighted row always visible. Either suppressing this key for IE scrolling or making it bubble via "return true;" sooner or later makes highlighted row out of view. Is there way consistently calculate Y coordinate for highlighted row and keep it always visible.

TIA
Michael