Click here to Skip to main content
15,891,920 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,
i have data in datagridview
i change 5.column's value
then i want select same row(cell) bu i didnt do it

not what i did
always select next row

What I have tried:

rapor.ClearSelection()
            If rapor.CurrentCellAddress.X = 5 Then
                rapor.CurrentCell = rapor.Rows(rapor.CurrentCellAddress.X - 1).Cells(5)

            End If

or
rapor.Rows(r - 1).Selected = True
Posted
Comments
OriginalGriff 21-Dec-19 2:06am    
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind - we only get exactly what you type to work with. So tell us what happened when you ran your code, and what you expected to happen.

Use the "Improve question" widget to edit your question and provide better information.
Member 14588284 21-Dec-19 7:17am    
its simple question;
i want select same cell when datagridvew cell change

not next row

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