DataGrid .NET Select

pcf108

Active member
Joined
Sep 19, 2003
Messages
30
Ive been doing an upgrade from VB6 to VB.NET and Im looking to use the datagrid instead of an MSHFlexGrid.

Basically Im trying to imitate the flexgrid property "SelectionMode" ByRow, which the row is selected rather then allowing focus to the cell. The ReadOnly property only locks the cell from editing.

This is the code i use to just select the row, but it still allows entry to the cell

Code:
Private Sub grdData_CurrentCellChanged(ByVal sender As Object, ByVal e As System.EventArgs) _
Handles grdData.CurrentCellChanged

grdData.Select(grdData.CurrentRowIndex)

End Sub

Anyone?
 
Last edited by a moderator:
So Im going to populate a listview control with the data instead of using datagrid, if anyone is interested.


Thank goodness for fools like me to make geniuses out of the rest.
 
Back
Top