BOTranslation, ChildForm and UserControl


Author
Message
Chan
Chan
Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)
Group: Forum Members
Posts: 533, Visits: 2K
Hi,

I have created an user control which contains of a linklabel BO and combobox. Combobox would show records exist in BO using CopyDataFrom method.

I placed this user control on a maintenance form. I also placed the BO required on the form and add it to BOTranslations. I called myBO.FillAll() in Form_Load, and called a UserControl.method() to requery combobox. I can see all records shown in combobox (let say 100 records).

All the above are fine, except the following. I have code to show childform to add new record when user click on linklabel. My code will call BO.Add() and ChildFormDialog.ShowDialog(). During debugging, I found that, BO.Count in usercontrol is in adding state (Count = 101) but the Form.BO.Count is not (count is still 100). It caused my childform didnt enable boundcontrol and only show the first record.

Any ideas?

Thank you

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search