manually assign goes blank to the text box binded with self servicing collection class binded with binding source

Posts   
 
    
Posts: 11
Joined: 30-Nov-2010
# Posted on: 02-Dec-2010 09:23:18   

hi dear friends,

i have created self servicing class using llblgen pro 3.0 and then i add that class to my vs2010 c# project and then i add the collection class to my form using toolbox called lets say "CertificateMasterCollection1" and then i place a binding source control on to the form.

i bound that binding source control's datasource property to CertificateMasterCollection1 and placed some controls on to the form and bind each controls using editvalue property with binding source control's fields

upto this everything works fine, records are binded and navigation also works fine.

my problem is i assign some other field values on one combobox selection (from master table). when i select some value in combobox it brings values from master table and assign the values to other controls on the form.upto this it is also ok

but but but when i press tab (leave combobox control) the fields, assign using combobox dropdown are goes blank

what is the reason behind this ?

have i to assign these values to (binding source's or CertificateMasterCollection1) currently added record if yes then how to get the current record ?

if is there any other solution please provide me

thanks in advance

Walaa avatar
Walaa
Support Team
Posts: 14993
Joined: 21-Aug-2005
# Posted on: 02-Dec-2010 09:32:13   

I'm not sure I understand your case correctly.

When you select a value form the comboBox, you go and set some values in some controls, ... the question is, are these controls the ones bound to the bindingSouce?

Posts: 11
Joined: 30-Nov-2010
# Posted on: 02-Dec-2010 09:40:01   

Walaa wrote:

I'm not sure I understand your case correctly.

When you select a value form the comboBox, you go and set some values in some controls, ... the question is, are these controls the ones bound to the bindingSouce?

yes it is binded except one control which is used to display party name and this control does not go blank (this display control is not binded)

actually same form was created using dataset before and it was working without any problem

Walaa avatar
Walaa
Support Team
Posts: 14993
Joined: 21-Aug-2005
# Posted on: 02-Dec-2010 09:55:18   

Do you experience the same thing if you edit these textboxes by hand (not programmatically)?

Posts: 11
Joined: 30-Nov-2010
# Posted on: 02-Dec-2010 10:02:21   

Walaa wrote:

Do you experience the same thing if you edit these textboxes by hand (not programmatically)?

no, if i enter any value by typing it keeps that value and does not go blank

can i send u the attachments of the project + sql 2008 r2 database backup + llblgen selfservice class generated source code ?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39866
Joined: 17-Aug-2003
# Posted on: 02-Dec-2010 10:13:26   

No, it's preferred you create a reprocase on a sample database, e.g. adventureworks or northwind if you use sqlserver. Then only attach the sourcecode of the reprocase, not large database files/backups etc.

Furthermore, it's key you first try with the latest build.

Frans Bouma | Lead developer LLBLGen Pro
Posts: 11
Joined: 30-Nov-2010
# Posted on: 02-Dec-2010 10:22:39   

Otis wrote:

No, it's preferred you create a reprocase on a sample database, e.g. adventureworks or northwind if you use sqlserver. Then only attach the sourcecode of the reprocase, not large database files/backups etc.

Furthermore, it's key you first try with the latest build.

thank u sir for your kind and fast co-operation but i have solved the problem and i found it from your support forums

the solution was CertMastBS.RaiseListChangedEvents = false after CertMastColl1.GetMulti(null);

thanking u very much again

have a nice day !!!