I have a WinForm with a TabControl on it with 2 Tabs. One for list (where I have my DataGrid - dg) and the other one for details. When I navigate through my DataGrid (either through my keyboard or by clicking a mouse on a row), the details Tab should show the currently selected row. Also, I want to hilight the entire row selected and not just the cell. How would I do it What are the Events I would trap An example would help.

Navigating a DataGrid
Takteek
What do you mean to highlight the entire row are we talking about highligting the row on the parent datagrid or the child datagrid.
For parent child relationships you should do this
Create a relation object between the two datatables in your dataset
set the parent datagrid to the parent datatble
datagrid1.datasource = mydataset
datagrid1.datamember = "MyDatatable"
Now set the child datagrid to the relation
datagrid2.datasource = Mydataset
datagrid2.datamember = "MyDatatable.RelationName"
So as you move around in datagrid 1, it will only show records related to the currently selected row in the parent inside of datagrid 2 (the child/details).
Hope this helps, also there is some info at:
http://www.syncfusion.com/FAQ/WinForms/default.asp#44
Mayil
Dave Cliffe - MSFT
andhowdy
Private Sub dg1_MouseUpDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles dg1.MouseUp, dg1.MouseDown
Dim hitInfo As System.Windows.Forms.DataGrid.HitTestInfo
hitInfo = dg1.HitTest(e.x, e.Y)
If hitInfo.Type = System.Windows.Forms.DataGrid.HitTestType.Cell Then
'Changed the cursor to waitCursor
Me.Cursor = System.Windows.Forms.Cursors.WaitCursor
Me.SuspendLayout()
Me.tcQueryResult.SelectedIndex = 0
Me.ResumeLayout()
'Reset the cursor
Me.Cursor = System.Windows.Forms.Cursors.Default
End If
End Sub
leoxtc
http://www.syncfusion.com/FAQ/WinForms/default.asp#44