Hi,
I am using datagridview and am unable to focus perticular cell in the
datagridview. like if i press tab/enter from first cell it should go to third cell.
Thank you, in advance.
Unable to focus perticular cell in the datagridview
Started by
Guest_salahuddin.syed_*
, Apr 24 2007 10:31 PM
1 reply to this topic
#1
Guest_salahuddin.syed_*
Posted 24 April 2007 - 10:31 PM
Guest_salahuddin.syed_*
|
|
|
#2
Posted 05 March 2010 - 06:20 AM
Are you doing this on a web page or in a forms application? If it is a web page it seems that you could handle the tab or enter press with javascript and set focus on the appropriate cell. If it is in a forms application then the gridview should be in an update panel and you can get the specific keypress number for each and set the appropriate cell. If is is on the back end in C# you would do something like this:
That will select a specific cell in a specific row. The syntax is not exact but it should be similar. Let me know if you have any other questions or issues.
this.myDatagrid.Items[rowIndex].Cells[cellIndex]
That will select a specific cell in a specific row. The syntax is not exact but it should be similar. Let me know if you have any other questions or issues.
-CDG10620
Software Developer
Software Developer


Sign In
Create Account

Back to top










