By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,454 Members | 3,191 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,454 IT Pros & Developers. It's quick & easy.

Datagrid Plus Sign Event

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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.