What method do you use to add records to the grid? Do you use a command button to add a record or another means?
You mention not allowing the up/dn arrows but what about using the mouse to select? Should that be disabled as well?
Watch the flow when the user presses up/dn arrow inside the grid. Check the afterrowcolumnchange...you also have to decide what would re-enable the other objects on the form? If the user is scrolling in the grid and you disable the other objects, then how does the user get out of the grid and enable another object? What is the determining factor that the other objects should be enabled again?
>Hi all,
>
>There are one listbox and 2 grids on the form.For each row in listbox there are 0 or few
>records in grids ( from 2 tables). First Q. is how should I suppress up/down arrow keys
>and PgUp and PgDown, while adding record inside grid, and second Q. is how should I
>prevent jumping from grid to grid or listbox while scrolling inside one grid with up/down
>arrow keys.
>TIA
>Regards, Gojko
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"