StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
WinForms (How do I?)
»
BO events not firing with DataGridView inside ThemedGroupBox
BO events not firing with DataGridView inside ThemedGroupBox
Post Reply
Like
0
Prev
1
2
Jump To Page
BO events not firing with DataGridView inside ThemedGroupBox
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Trent Taylor
Trent Taylor
posted 16 Years Ago
ANSWER
Post Details
Share Post
Group: StrataFrame Developers
Posts: 6.6K,
Visits: 7K
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"
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
(
124 views,
2.00 MB
)
Reply
Like
0
Edhy Rijo
E
Edhy Rijo
posted 16 Years Ago
ANSWER
Post Details
Share Post
E
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
.
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
Reply
Like
0
Edhy Rijo
E
Edhy Rijo
posted 16 Years Ago
ANSWER
Post Details
Share Post
E
Group: StrataFrame Users
Posts: 2.4K,
Visits: 23K
Thanks for the info.
Edhy Rijo
Reply
Like
0
Trent Taylor
Trent Taylor
posted 16 Years Ago
ANSWER
Post Details
Share Post
Group: StrataFrame Developers
Posts: 6.6K,
Visits: 7K
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.
Reply
Like
0
Edhy Rijo
E
Edhy Rijo
posted 16 Years Ago
ANSWER
HOT
Topic Details
Share Topic
E
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
(
133 views,
130.00 KB
)
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Like
0
Prev
1
2
Jump To Page
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search