Hello!
I am working on a project that requires the TAB to work on column headers/group headers exactly like the mouse works when hovering over the headers, highlight and select the header. TAB-ing again should take me to the next header, highlight, select it, etc. Is there something specific in the grid for this or do I need to override KeyDown or any other event to deal with this? I still want the TAB to work the way it works in the rows.
Thanks!
Hi,
I'm not sure this is possible, even in the Key events of the grid, because a column header never gets focus. There is no such thing as an Active colmun header. I guess if the user clicks a column, you could detect that the column is selected and then select the next column when Tab is pressed. But there's no way for the user to select a column without using the mouse as far as I know.
Thanks Mike! My sequence is - select the column, set the focus outside the grid to another control, change the column caption based on the combo selection and set the next column on the grid as being selected, kind of mimicking the TAB. Setting a column header as selected programmatically should not be a problem, right?