HIGHLIGHTTTTTTTTTT a

  • Thread starter Thread starter Hari
  • Start date Start date
H

Hari

Thank you, it is working fine.
but i want the row which i clicked to be highlighted
for example if i click 1 row it should get highlighted
then if i click 2 row 1st row should be in the default
format and 2nd row should get highlighted.

How can i achieve this?

Thank you
 
It's in vb, but you can try to use this :

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

Dim grdInfo As DataGrid.HitTestInfo = _
DataGrid1.HitTest(e.X, e.Y)
Me.DataGrid1.Select(grdInfo.Row)

End Sub

Tom
 
Back
Top