BO events not firing with DataGridView inside ThemedGroupBox


Author
Message
Edhy Rijo
E
StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Hi Trent,

I am working with a DataGridView and noticed that the BO navigated event is not being fired when the DataGridView is in a ThemedGroupBox.



I tested this with the BusinessBindingSource VB Sample which I am attaching it here. Please let me know if there is a way for me to fix this before an update is released, I need to show up a demo next Monday May 18th 2009.



Thanks!


Edhy Rijo

Attachments
BusinessBindingSource_VB_2008.zip (108 views, 130.00 KB)
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Actually this just needs a refresh.  This is actually a .NET reflection thing.  The reason is that since the DataGridView has a different parent container that the grid is not automatically refreshing because the parent container in which is resides did not refresh.  So this is actually by design on the grid.  To get it to update, just add the following code in the Navigated event of the BO:

Me.DataGridView2.Refresh()

That will refresh the grid and sync the index as well for that particular grid.

Edhy Rijo
E
StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Thanks for the info.

Edhy Rijo

Edhy Rijo
E
StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Hi Trent,

I am back trying to make the grid works since I need to allow the user to be able to modify 2 columns values and in this case I can not use a ListView BigGrin.



I tried the following code in the previously attached sample:





Private Sub Customers_Navigated(ByVal e As MicroFour.StrataFrame.Business.NavigatedEventArgs) Handles Customers.Navigated

Me.DataGridView2.Refresh()

Me.lblRowIndex.Text = Me.Customers.CurrentRowIndex.ToString()

End Sub





Still I don't see the Me.DataGridView2 being refreshed. But at any rate, to be clear this is what I am expecting from the DataGridView2 to work:

1.- The Me.DataGridView2 is in a ThemedGroupBox.

2.- When moving the record pointer in the Me.DataGridView2, that it will update the Me.lblRowIndex the same way it is done when moving the record pointer in the Me.DataGridView1.

Edhy Rijo

Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Yeah, and I have set this up and it is working. Have you looked at the grid sample that comes with the framework? I have tried this a number of different ways and they are all working...so I need to get in a "not working" BigGrin state so that I can help you.



Using your sample this is working on my side. Let me know if this is not the desired results.
Attachments
GridSelection.zip (102 views, 2.00 MB)
Edhy Rijo
E
StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Hi Trent,



I saw your video and noticed it is working on your end, unfortunately that is not my case, see the attached video of the same sample project you have.



Probably we don't have the same SF assemblies? See the picture to see what I have from the latest one posted so far 1.6.6.9.



Any ideas!

Edhy Rijo

Attachments
SF Assemblies List.png (99 views, 196.00 KB)
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
To be honest, I think that you have something else going on.  Yes, it very well could be assemblies, but which assemblies you are fighting and which are being pulled will be the thing to determine. 

When you look at the references, where are the assemblies pointing when you look at the assembly path within the sample project?


Edhy Rijo
E
StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
In the BusinessBindingSourceSample all SF assemblies are pointing to



C:\Program Files\Common Files\MicroFour\StrataFrame\





In my application I have these:



C:\Windows\assembly\GAC_MSIL\MicroFour StrataFrame Base\1.6.0.0__99fe9917f71608a7\MicroFour StrataFrame Base.dll

C:\Windows\assembly\GAC_MSIL\MicroFour StrataFrame Business\1.6.0.0__99fe9917f71608a7\MicroFour StrataFrame Business.dll

C:\Program Files\Common Files\MicroFour\StrataFrame\MicroFour StrataFrame DBEngine.dll

C:\Program Files\Common Files\MicroFour\StrataFrame\MicroFour StrataFrame Infragistics Wrapper.dll

C:\Windows\assembly\GAC_MSIL\MicroFour StrataFrame Security\1.6.0.0__99fe9917f71608a7\MicroFour StrataFrame Security.dll

C:\Windows\assembly\GAC_MSIL\MicroFour StrataFrame UI\1.6.0.0__99fe9917f71608a7\MicroFour StrataFrame UI.dll





I posted a message a week ago about this very same issue I noticed my SF assemblies being used from different locations. Just to remind you I am using Vista 64bits.

Edhy Rijo

Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Has nothing to do with 64-bit...I am running 64-bit as well. This is how .NET operates. Within the designer, it may pull from the Program Files location since this is where the designer points. However, the GAC will ultimately be used at run-time if they are there. This is one thing that can be frustrating about .NET design-time IDE.
Edhy Rijo
E
StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Trent L. Taylor (06/01/2009)
Has nothing to do with 64-bit...I am running 64-bit as well.




In your screenshot I noticed that the assembly path is C:\Program Files (x86)\Common Files and mine are just C:\Program Files\Common Files, is this correct?

Edhy Rijo

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