Click here to Skip to main content
15,851,711 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have a DataGrid named myGrid.
I want to use the keyDown event to recognize the arrow keys.
But it doesn't work.
Selected row's SelectionBackColor turns blue with i clicked on a row, but selected cell's backColor not turn.
therefore the keyDown event won't fire.
i cant use arrow keys, unless selected row's color turn blue together selected cells.
if i select row header, it works.
i'm sendin full row selection code that in Grid's CurrentCellChanged event.
Does anyone know why the event wont fire when a cell's text selected?
or how the event fires?
sorry my bad english..

private void myGrid_CurrentCellChanged(object sender, EventArgs e)
Updated 29-Sep-10 4:39am

1 solution

go throw this link its very helpful you will get want you want[^]

Thanks & Regard Aarti.Thakkar (nemo)
Do not Forget to Vote as Answer/Helpful, please. It encourages us to help you... :thumbsup::thumbsup::rose:
Share this answer

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