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 7489359
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T15:14:08+00:00 2026-05-29T15:14:08+00:00

I have readonly datagridview, I need in some specific case enable one cell after

  • 0

I have readonly datagridview, I need in some specific case enable one cell after doubleclicking row (make readonly=false and make focus on this specific cell in current row (like entering it – the cursor should start to blink).

I have:

 private void dataGridView1_DoubleClick(object sender, EventArgs e)
{
       dataGridView1.Cells[3].ReadOnly = false;
}

But it doesn’t work. Why?

  • 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-05-29T15:14:09+00:00Added an answer on May 29, 2026 at 3:14 pm

    Try to set the currentcell of the Datagridview and call BeginEdit

     private void dataGridView1_DoubleClick(object sender, EventArgs e)
     {
        dataGridView1.Cells[3].ReadOnly = false;
        this.dataGridView1.CurrentCell = dataGridView1.Cells[3];
        dataGridView1.BeginEdit(true);
    }
    

    http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.beginedit.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've faced with situation when I need to have EF readonly property in case
I have a DataGridview, and I'm setting some of the columns to readonly for
I have a DataGridView, which is not set to ReadOnly. None of its columns
I have a WPF textBox that is declared as ReadOnly <TextBox IsReadOnly=True IsTabStop=False Width=200
I have a DataGridView that has three read only columns in it and one
I have a DataGridView , where I want to disable some cells/rows with setting
I am trying to get my datagridview to display more than one row of
I have a DataGridView with several columns and several rows of data. One of
It seems that VB.NET and C# readonly keyword have some differences... Say, a ReadOnly
According to HTML specs, the select tag in HTML doesn't have a readonly attribute,

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.