Passing BO to childform and use it with a BBS and a Datagridview


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 a procedure I fill a BO with data and pass it to a form the procedure is calling. On the form is a datagridview and a BusinessBindingSource. I gave linked an "empty" BO to the BBS to design the grid. Now when the form is loaded, I want to replace this BO with the BO passed to the form in the new-Event.






Private myvormerker As MyvormerkerBO

Public Sub New(ByRef myvm As MyvormerkerBO)

MyBase.new()




InitializeComponent()

myvormerker = myvm

End Sub



In the load-event I try



Me.VMGrid.DataSource = Nothing

Me.BBS1.BusinessObject = myvormerker

Me.VMGrid.DataSource = Me.BBS1



At first I thought it to be working as the data is correctly displayed but the grid is some kinf of idabled as I cannot mark any cell or move to another row or do anything with it.

Could someone tell me what I am missing?

Thanks in advance

Thomas



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