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
Anyone?
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: