Thank you very much. I'll look into it after some Christmas celebration, and
let you know if it meet the challenges. I suppose I have to use key-event
too, if it is supported for the control. I have already tried setting
properties for the adodc-controll, and EOFAction is set to adDoAddNew. This
adds a new record when user navigates "next". Problem is that the new record
is updated, even if there is no data. Empty records usally not allowed, and
forces error when lost focus. May be it's better to achieve this with
property settings in the datagrid-control, as you suggest.
Sait
> Hi,
>
[quoted text clipped - 9 lines]
> "This posting is provided "AS IS" with no warranties, and confers no
> rights."
Kevin Yu [MSFT] - 24 Dec 2005 04:37 GMT
You're welcome, Sait. The datagrid control is similar to the grid in
Access, but not 100% same. If you really need exactly the same
functionality, maybe you need to customize it to your own one.
Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
sait - 25 Dec 2005 00:27 GMT
In Access you obtain the same navigation features for records independent of
the controls you add to the form to display data. Suppose you add a textbox
and binds it to the datasource, wich is a field in a table. You will always
be able to navigate to a "new" record, when standing on the last record
updated in the database. You will always have the possibility of canceling
the new record, as long as you do no typing in the textbox. You may click the
box, and still leave it without actually adding a new record, as long as you
keep the fingers off the keyboard.
So to me it seems that this functionality is independent of the controls you
add to the form to display and modify data. So I wonder if this happens as a
result of settings for the ADODC - datacontrol, or may be there are settings
for the recordset as well that determines how the user may navigate?
Most of all I'm interested in finding a general solution on how to
automaticly update a new record on the first keystroke. I suppose I have to
do this with a keydown-event?
Sait
> You're welcome, Sait. The datagrid control is similar to the grid in
> Access, but not 100% same. If you really need exactly the same
[quoted text clipped - 4 lines]
> "This posting is provided "AS IS" with no warranties, and confers no
> rights."
Kevin Yu [MSFT] - 27 Dec 2005 09:28 GMT
Hi Sait,
The behavior as you described is not only controlled by the ADODC control.
It also have something to do with the binding controls. Yes, as you know,
if you need to do something when the first key pressed, you can handle the
key events. But I suggest you use the keyup event.
Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
Kevin Yu [MSFT] - 24 Dec 2005 04:37 GMT
You're welcome, Sait. The datagrid control is similar to the grid in
Access, but not 100% same. If you really need exactly the same
functionality, maybe you need to customize it to your own one.
Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."