I have to make an UltraGrid behave like a Microsoft Access grid. Where I am stuck is:
1. How to make a cell editable as soon as the user clicks in it WITHOUT highlighting the entire row,
BUT ALSO
2. How to highlight the entire row if the user clicks on the row selector.
(The user must also be able to run the mouse down the row selectors and highlight multiple rows-but I know how to do that).
Hi,
kennethknoepfli said:1. How to make a cell editable as soon as the user clicks in it WITHOUT highlighting the entire row,
This is the default behavior of the grid. If it's not letting you edit a cell when you click on it once, then you must have changed some property setting in the grid that is causing this behavior. I'd look for the CellClickAction property as the most likely candidate.
kennethknoepfli said:2. How to highlight the entire row if the user clicks on the row selector.
Once again, this is the default behavior of the grid. Clicking the row selector selects the row. That's it's whole purpose in life. Are you saying that you are clicking on the row selector and it's not selecting the row? The only reason that would happen is if the row is disabled or you have disabled selection in the grid.
Hello Mike, thanks for replying.
1. Yes, but the entire row becomes blue, too. in MSAccess, only the cell itself becomes highlighted. This is what our client wants.
2. Yes, that's the default behavior. I'm just pointing out that both situations must work, but they conflict. I can change the active row BackColor to Transparent to hide it in situation 1., but then it REMAINS transparent, even if I click on the row selector. - Oh. I have just noticed: The text color also goes transparent and the text disappears! This is evidently not the way to do it.
I have a third question, if I may.
Is there a way of getting the ActiveCell.Column VISIBLE index? ActiveCell.Column.Index seems to refer to the DataSource, not the displayed grid position. It no longer corresponds to the grid after the user changes column positions.