Mario Michiels
New member
- Joined
- Apr 14, 2005
- Messages
- 2
- Programming Experience
- Beginner
I would like a datagrid where you can only select by row. I can allready automatically select the rows :
Private Sub myDataGrid_CurrentCellChanged(ByVal sender As Object, ByVal
e As System.EventArgs) Handles myDataGrid.CurrentCellChanged
myDataGrid.Select(myDataGrid.CurrentRowIndex)
End Sub
but the datagrid also still selects the text of the current cell in that row so you
can still select and copy the text of that cell.
How can I prevent the users from entering the cells in my grid leaving them only able to browse and select by row ?
Also when you use the scrollbutten on the mouse you scroll only a couple of rows and then it stops.
How do I enbable scrolling through the whole grid ?
Thanks in advance !
Private Sub myDataGrid_CurrentCellChanged(ByVal sender As Object, ByVal
e As System.EventArgs) Handles myDataGrid.CurrentCellChanged
myDataGrid.Select(myDataGrid.CurrentRowIndex)
End Sub
but the datagrid also still selects the text of the current cell in that row so you
can still select and copy the text of that cell.
How can I prevent the users from entering the cells in my grid leaving them only able to browse and select by row ?
Also when you use the scrollbutten on the mouse you scroll only a couple of rows and then it stops.
How do I enbable scrolling through the whole grid ?
Thanks in advance !