How to Highlight a Cell in a Datagrid

G

Guest

Hi,
In your PPC 2003 Application we have a datagrid.
If i Select any cell with in the datagrid, then i can use Arrow keys to
navigate to different cell and view them.

How can i programatically select the First cell so that i can use Arrow Keys
for navigation and viewing other cells.
I am using a DataTable to populate the Datagrid from an XML File.

Thanks in Advance,
Murthy
 
I

Ilya Tumanov [MS]

C#:
dataGrid.CurrentCell = <whatever cell you'd like to select>;

VB:
dataGrid.CurrentCell = <whatever cell you'd like to select>

--
Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top