customise datagrid

  • Thread starter Thread starter starbuck
  • Start date Start date
S

starbuck

Hi All

Probably a simple answer to this so... How do I change the settings of a
datagrid so the highlighted records line is completely highlighted and not
just a single column.

Thanks in advance
 
Hi

I now have a method to highlight the row on a mouse up (see below) can
anyone advise on key up

Private Sub DataGrid1_MouseUp(ByVal sender As System.Object, ByVal e As
System.Windows.Forms.MouseEventArgs) Handles DataGrid1.MouseUp

Dim pt = New Point(e.X, e.Y)

Dim hit As DataGrid.HitTestInfo = DataGrid1.HitTest(pt)

If hit.Type = Windows.Forms.DataGrid.HitTestType.Cell Then

DataGrid1.CurrentCell = New DataGridCell(hit.Row, hit.Column)

DataGrid1.Select(hit.Row)

End If

End Sub


Regards
 
Back
Top