Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

My 'Problem' is quite simple . I have a table in a database . And I don't want to use a datagrid to represent it ( I don't like the view ) . I want it to look like it looks in Dc++ ( For exemple when u see the Public Hubs Window )

What should I use ? list boxes or what ?

Development & Research Department @ Elven Soft
Posted

play around with this code out. It might be something that you need.

 

    
   Private Sub dg_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles dg.MouseDown
       Dim pt = New Point(e.X, e.Y)
       Dim hti As DataGrid.HitTestInfo = dgPatientData.HitTest(pt)

       If hti.Type = DataGrid.HitTestType.Cell Then
           dg.CurrentCell = New DataGridCell(hti.Row, hti.Column)
           dg.Select(hti.Row)
       End If
   End Sub

George C.K. Low

Posted

I receive an error here :

 

Dim hti As DataGrid.HitTestInfo = dgPatientData.HitTest(pt)

 

What does the name 'dgPatientData' represent ?

Development & Research Department @ Elven Soft

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...