I have made a little demo project to show more clearly what I asked in this thread -still unanswered.
The msflexgrid uses a textbox for text editing because I wanted to have the selstart and sellength properties available, which the flexgrid cells don't have, It's working fine, but now I want to add a further refinement: if any cell from a specific row, say row 10, is clicked on, or if the textbox is in the previous row (9) and you hit return or arrow down (or if we are in row 11 and we hit arrow up, etc) I want a checkbox to appear in that cell instead of the textbox. When the user has chosen the checkbox state (by means of the spacebar key or the mouse) and hits return (or clicks another cell with the mouse), I want the checkbox to be made invisible and the textbox to appear in the corresponding cell.
Doesn't seem to be too complicated, but the logic of it is driving me bananas.




Reply With Quote