Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is there anyone who can help me with DataGrid Problem

Status
Not open for further replies.

sp76

Programmer
Jul 1, 2003
59
AU

I am having this problem since long, but no one seems to have worked out any solution for it. I tried to scour through many articles but haven't got an answer yet. PLease help me with this.

I have written the following code to highlight the row when a user press up-down arrow key.

Private Sub DataGrid_CurrentCellChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles DataGrid.CurrentCellChanged
'Highlight datagrid when arrow keys are used.
DataGrid.Select(DataGrid.CurrentCell.RowNumber)
End Sub

but this leaves the focus within the current cell of the highlited row. It gives a wired look, the text in current cell is selected and cursor keeps on blinking. How can I prevent this
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top