Problem with adding new record


Author
Message
Thomas Holste
Thomas Holste
StrataFrame User (360 reputation)StrataFrame User (360 reputation)StrataFrame User (360 reputation)StrataFrame User (360 reputation)StrataFrame User (360 reputation)StrataFrame User (360 reputation)StrataFrame User (360 reputation)StrataFrame User (360 reputation)StrataFrame User (360 reputation)
Group: StrataFrame Users
Posts: 144, Visits: 618
Hi there,

in an app I have a panel with a toolstrip (and some toolstrip-buttons), a datagridview and some textboxes.

There is a BO (called MessidentBO) and a Business Binding Source to which the BO ist bound. The BBS is used as datasource for the datagridview and the textboxes. In the cmdNew-Button I have the following code:



Me.lEditmode = True

Me.DGVWL.Enabled = False  ' Datagridview disabled

Me.cmdwlneu.Enabled = False

Me.cmdwledit.Enabled = False

Me.cmdwlsave.Enabled = True

Me.cmdwlundo.Enabled = True

Me.cmdwldelete.Enabled = False

Me.bbsmessident.BusinessObject.Add()

Me.bbsmessident.BusinessObject.Edit()

Me.TGBWL.Enabled = True  ' Themed Group Box Enabled where the textboxes reside

Me.TxtMIIdent.Focus()



But this does not work. A new record is append, but the "record pointer" (If I can use this term) is not set to the new record but stays on the one selected in the Grid.

What really makes me wondering, is that I use the same kind of code in another app and there it works fine!

I've been comparing the two pieces of code and the properties of the used elements but I can not find the difference.

Has anybody a tip for me what I might have been missing?

Thanks in advance

Thomas
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Thomas Holste - 13 Years Ago
Ivan George Borges - 13 Years Ago
Thomas Holste - 13 Years Ago
Ivan George Borges - 13 Years Ago
Thomas Holste - 13 Years Ago
                         Hey Thomas. I had a look at it and posted here with some changes that...
Ivan George Borges - 13 Years Ago
                             Hi Ivan, thanks a lot for your help. I checked your changes and they...
Thomas Holste - 13 Years Ago
                                 [quote]What I expected (and what I did in another app is that, when I...
Ivan George Borges - 13 Years Ago
                                     Hi Ivan, sorry to say but I haven't got it going. My sample just...
Thomas Holste - 13 Years Ago
                                         Hi Thomas. Find attached a video of your first sample, with the...
Ivan George Borges - 13 Years Ago
                                             Hi Ivan, thanks for your help. At first it did not work but after...
Thomas Holste - 13 Years Ago
                                                 Glad it helped, Thomas.
Ivan George Borges - 13 Years Ago
Thomas Holste - 13 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search