Welcome to Dream.In.Code
Getting C# Help is Easy!

Join 136,155 C# Programmers for FREE! Get instant access to thousands of C# experts, tutorials, code snippets, and more! There are 2,120 people online right now. Registration is fast and FREE... Join Now!




Datagridview Cell Focussing

 
Reply to this topicStart new topic

Datagridview Cell Focussing

marifdu
24 Dec, 2007 - 03:46 AM
Post #1

New D.I.C Head
*

Joined: 15 Jun, 2007
Posts: 1


My Contributions
Do any one can help me how can i set up the focus on a particular cell when i press enter key.
I work just like textbox focuss.
Arif
User is offlineProfile CardPM
+Quote Post

bfair123
RE: Datagridview Cell Focussing
24 Dec, 2007 - 06:56 AM
Post #2

New D.I.C Head
*

Joined: 24 Dec, 2007
Posts: 1

Marifdu,

You can do it as follows, but you'll need the index of the row and column to identify the cell that you wish to select:

CODE
dataGridView1.Rows[0].Cells[0].Selected = true;

User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/1/08 11:16PM

Live C# Help!

C# Tutorials

Reference Sheets

C# Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month