Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9254265
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T11:25:28+00:00 2026-06-18T11:25:28+00:00

I am developing a form with datagridview . The result I want is: When

  • 0

I am developing a form with datagridview.

The result I want is:

  • When user clicks on ReadOnly Cell, the Cursor will move to Editable Cell.
  • When user clicks on Editable Cell, the Cursor will be on this Current Editable Cell.

I make this on Cell_Enter Event (I have some reason to code this on Cell_Enter.I have to use Cell_Enter).

DataGridViewCell cell = myGrid.Rows[cursorRow].Cells[cursorCol];
myGrid.CurrentCell = cell;
myGrid.BeginEdit(true);

Clicking on Editable Cell is OK, Clicking on ReadOnly Cell give an Exception Error:

Error->
Operation is not valid because it results in a reentrant call to the SetCurrentCellAddressCore function.

So, Is there a solution for this problem? (When user clicks on ReadOnly Cell, the Cursor will move to Editable Cell.)

Edit:The solution I want is How do I move cursor to Other cell that is not Current cell?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T11:25:29+00:00Added an answer on June 18, 2026 at 11:25 am

    I have found a solution for this problem here.

          private void myGrid_CellEnter(object sender, DataGridViewCellEventArgs e)
            {
                //Do stuff
                Application.Idle += new EventHandler(Application_Idle);
    
            }
    
            void Application_Idle(object sender, EventArgs e)
            {
                Application.Idle -= new EventHandler(Application_Idle);
                myGrid.CurrentCell = myGrid[cursorCol,cursorRow];
            }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing a form in which user must insert an username. I want to
I'm developing a form, and using jQuery UI Autocomplete. When the user selects an
I am Developing Windows Form Application in .Net, I want to insert selected rows
I'm developing a web form, where I want different inputs to appear depending on
I've faced the following problem. I'm developing a form for the site and this
I'm a bit new to the C#-form app developing and I want know, what's
I'm developing a Windows Form application that will typically minimize to the system tray.
I am designing & developing Reset Password form, where user provides username/email address so
I am currently developing a C# Windows Form Application. After the user has login
I am developing a windows form application in .net c#, All I want to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.