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

  • Home
  • SEARCH
  • 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 3274324
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T19:01:30+00:00 2026-05-17T19:01:30+00:00

I have a datagridview on a form, and I want a specific cell in

  • 0

I have a datagridview on a form, and I want a specific cell in the first row to be in edit mode when the form opens and when the selection changes. The DataGridView selectmode is set to “FullRowSelect” and in the selection change event I have the following code:

if (dgvReconList.SelectedRows.Count == 1)
{
    dgvReconList.CurrentCell = dgvReconList.SelectedRows[0].Cells["colReferralDate"];
    dgvReconList.BeginEdit(true);
}

That code works like a charm when I change the selection. The problem is that when I try to set the desired cell in the first row to edit mode (using above code) when the form opens. The first row is selected, and the desired cell is the “current” cell, but it is not in edit mode. I have tried using the above code in the forms activate event, the load event, and several others with no luck.

How can I get the cell to be in edit mode as soon as the form opens?

  • 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-17T19:01:31+00:00Added an answer on May 17, 2026 at 7:01 pm

    Do simple three steps.

    In the form load event -> After loading the data into the DGV

    1. Set the DGV property EditMode to EditOnEnter.
    2. dgvReconList.CurrentCell = dgvReconList[desiredColumnIndex, 0];
    3. dgvReconList.CurrentCell.Selected = true;

    This will directly set the current sell in edit mode.

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

Sidebar

Related Questions

I have a DataGridView in a form and I want to programmatically click its
I have a DataGridView bound to a DataSet. I only want a selection of
I have a DataGridView with its datasource set to a generic list of custom
I have a DataGridView that I want to query using Linq (C# WinForm). I
I have a datagridview which im binding DataTable to. What I want do is
in C# 4.0 (Visual Studio 2010), i have a Windows Form DataGridView that must
I want to bind datagridview in windows application with dynamically changed datatable. I have
I have a DataGridView with one DataGridViewComboBoxColumn in my WinForms application. I need to
I have a datagridview where the users can select which subset of columns to
I have a DataGridView control in a winforms app that I'm working on. The

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.