How to move in a datagrid object. which of the column 1 and row 1 I want to move to the row 1 and column 3.
whether this can be done on the datagrid.
Thank you
Printable View
How to move in a datagrid object. which of the column 1 and row 1 I want to move to the row 1 and column 3.
whether this can be done on the datagrid.
Thank you
First up, as you're using VB 2010 I would suspect that you are doing one of the following:
1. Using WinForms and using a DataGridView rather than a DataGrid.
2. Using WinForms and actually using a DataGrid, in which case you should switch to a DataGridView.
3. Not using WinForms.
If you are using a DataGridView then please use the correct terminology. If you are not using WinForms then please post in the proper forum (ASP.NET, WPF, Silverlight) or at least let us know exactly what technology you're using. Otherwise, you either cause confusion or require us to make assumptions that could easily be wrong.
As for the question, what do you actually mean? Are you saying that you want to focus a specific cell? Copy a value from one cell to another? Something else?
i use DatagridView Control, this for Desktop App.
yes, i want to focus a specific cell. but i don't know how to do.
You get the desired cell by whatever means are appropriate, e.g. the Item property of the grid, and then you assign that to the CurrentCell property.