PROKA Posted March 24, 2004 Posted March 24, 2004 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 ? Quote Development & Research Department @ Elven Soft
Moderators Robby Posted March 25, 2004 Moderators Posted March 25, 2004 What's Dc++ ? Is this going to be a Windows form or web? Quote Visit...Bassic Software
georgepatotk Posted March 25, 2004 Posted March 25, 2004 if you are talking about the windows form, DC++ is using datagrid. You just change the appearance, it will look exactly like Public Hub in DC++. Quote George C.K. Low
PROKA Posted March 27, 2004 Author Posted March 27, 2004 I want the exact same behaviour . For example, if I click an item, the hole row is selected ... I can't get that :( Quote Development & Research Department @ Elven Soft
georgepatotk Posted March 27, 2004 Posted March 27, 2004 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 Quote George C.K. Low
PROKA Posted March 30, 2004 Author Posted March 30, 2004 I receive an error here : Dim hti As DataGrid.HitTestInfo = dgPatientData.HitTest(pt) What does the name 'dgPatientData' represent ? Quote Development & Research Department @ Elven Soft
georgepatotk Posted March 31, 2004 Posted March 31, 2004 it means the datagrid that u are pressing Quote George C.K. Low
PROKA Posted March 31, 2004 Author Posted March 31, 2004 thought 'dg' was the name of the DataGrid Quote Development & Research Department @ Elven Soft
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.