Click here to Skip to main content
15,892,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can I display a listview populated with data just below current cell of a datagridview while typing in that same cell.
This is what I have but the listview is too far from the current cell:
VB
If DataGridView1.CurrentCell.ColumnIndex = 0 Then
                    Dim CellRectangle1 As Rectangle=DataGridView1.GetCellDisplayRectangle(e.ColumnIndex, e.RowIndex, False)

           Dim DisplayPoint1 As Point = PointToScreen(New Point(CellRectangle1.X, CellRectangle1.Y))
           listview1.Visible = True
           listview1.Location = DisplayPoint1

End If
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900