E
Edwin
Hi,
I created a dataform with the data form wizard which
created some textboxes and 1 checkbox. When I add a row
(see section "Add Row" for code) the newly added is not
accessible.
A label "lblNavLocation" generated by the wizard shows
that a row has been added but I can not navigate to it.
See section "PositionChanged" for code.
The form works fine without the checkbox.
Any ideas on what is happening? Could you explain it to
me?
Thanks,
Edwin
Add Row:
/////////////////////////////////////////////
Me.BindingContext
(objFormDS, "PreventiveTasks").EndCurrentEdit()
Me.BindingContext
(objFormDS, "PreventiveTasks").AddNew()
On the form there is a check box.
/////////////////////////////////////////////
PositionChanged:
//////////////////////////////////////////////
Me.lblNavLocation.Text = (((Me.BindingContext
(objFormDS, "PreventiveTasks").Position + 1).ToString + "
of ") _
+ Me.BindingContext
(objFormDS, "PreventiveTasks").Count.ToString)
//////////////////////////////////////////////
I created a dataform with the data form wizard which
created some textboxes and 1 checkbox. When I add a row
(see section "Add Row" for code) the newly added is not
accessible.
A label "lblNavLocation" generated by the wizard shows
that a row has been added but I can not navigate to it.
See section "PositionChanged" for code.
The form works fine without the checkbox.
Any ideas on what is happening? Could you explain it to
me?
Thanks,
Edwin
Add Row:
/////////////////////////////////////////////
Me.BindingContext
(objFormDS, "PreventiveTasks").EndCurrentEdit()
Me.BindingContext
(objFormDS, "PreventiveTasks").AddNew()
On the form there is a check box.
/////////////////////////////////////////////
PositionChanged:
//////////////////////////////////////////////
Me.lblNavLocation.Text = (((Me.BindingContext
(objFormDS, "PreventiveTasks").Position + 1).ToString + "
of ") _
+ Me.BindingContext
(objFormDS, "PreventiveTasks").Count.ToString)
//////////////////////////////////////////////