Datagrid Plus Sign Event

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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/d...temwindowsformsdatagridclassnavigatetopic.asp

Ken
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top