471,086 Members | 1,159 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,086 software developers and data experts.

Datagrid Plus Sign Event

Is there an event that fires when a user clicks the plus sign in a
Master/Detail datagrid? It would be even better if I could catch when the
user clicks the link to see the detail records. What I'm wanting to do is
not load the detail data until the user clicks the link. Any ideas or links
would be appreciated.

Thanks
Jan 12 '06 #1
2 1404
Hi,

I dont think there is any event that fires when you click on the
plus sign for the child records. You can check and see in the mouse down
event if the user clicked on the row header but that does not necessarly
mean they clicked the +

Private Sub DataGrid1_MouseDown(ByVal sender As Object, ByVal e As
System.Windows.Forms.MouseEventArgs) Handles DataGrid1.MouseDown
Dim hti As DataGrid.HitTestInfo
hti = DataGrid1.HitTest(e.X, e.Y)
Trace.WriteLine(hti.Type)
End Sub

The navigate event fires when you switch between parent and child records.

http://msdn.microsoft.com/library/de...igatetopic.asp

Ken
----------------------
"blue_nirvana" <bl*********@discussions.microsoft.com> wrote in message
news:97**********************************@microsof t.com...
Is there an event that fires when a user clicks the plus sign in a
Master/Detail datagrid? It would be even better if I could catch when the
user clicks the link to see the detail records. What I'm wanting to do is
not load the detail data until the user clicks the link. Any ideas or
links
would be appreciated.

Thanks

Jan 12 '06 #2
Thanks Ken, but I just went ahead and added another datagrid and switch
between the parent and child based on the user clicking a link label type
column.

Thanks for your response.

"Ken Tucker [MVP]" wrote:
Hi,

I dont think there is any event that fires when you click on the
plus sign for the child records. You can check and see in the mouse down
event if the user clicked on the row header but that does not necessarly
mean they clicked the +

Private Sub DataGrid1_MouseDown(ByVal sender As Object, ByVal e As
System.Windows.Forms.MouseEventArgs) Handles DataGrid1.MouseDown
Dim hti As DataGrid.HitTestInfo
hti = DataGrid1.HitTest(e.X, e.Y)
Trace.WriteLine(hti.Type)
End Sub

The navigate event fires when you switch between parent and child records.

http://msdn.microsoft.com/library/de...igatetopic.asp

Ken
----------------------
"blue_nirvana" <bl*********@discussions.microsoft.com> wrote in message
news:97**********************************@microsof t.com...
Is there an event that fires when a user clicks the plus sign in a
Master/Detail datagrid? It would be even better if I could catch when the
user clicks the link to see the detail records. What I'm wanting to do is
not load the detail data until the user clicks the link. Any ideas or
links
would be appreciated.

Thanks


Jan 20 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Darryn Ross | last post: by
reply views Thread by WStoreyII | last post: by
2 posts views Thread by Robert Bravery | last post: by
reply views Thread by Brett Romero | last post: by
reply views Thread by pmcguire | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.