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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T13:26:50+00:00 2026-06-10T13:26:50+00:00

In Winforms DataGridView, how do I: Remove the arrow on the row header? I

  • 0

In Winforms DataGridView, how do I:

  1. Remove the arrow on the row header? I need to display the row header text, so I can’t simply set RowHeadersVisible = false.
  2. Adjust the width of the row header programmatically? I’m setting the row headers by code so I need the width to adjust to show the row header text upon change.
  • 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-10T13:26:52+00:00Added an answer on June 10, 2026 at 1:26 pm

    First of all override the function the DataGridView known as

    private void dataGridView1_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e)
    {
        e.PaintHeader(DataGridViewPaintParts.All & ~DataGridViewPaintParts.ContentBackground);
    }
    

    On button click add value to row header

    private void button1_Click(object sender, EventArgs e)
    {
        string a = "khan yousafzai";
        dataGridView1.RowHeadersWidth = dataGridView1.RowHeadersWidth +(7* a.Length);
        dataGridView1.Rows[0].HeaderCell.Value = a;
        dataGridView2.Rows.Add();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a winforms datagridview that seems to always have at least one row
How can implement reordring in winforms datagridview by using the feature of drag and
I have a column Name Quote Price in a DataGridView winforms control. I can
I'm using a DataGridView in a WinForms project with the AutoSizeRowsMode set to AllCells.
I have a Winforms DataGridView in my application. When the user selects a row
I need to programmatically change the border of individual cells in a WinForms DataGridView.
How can I change the selection style on a DataGridView (winforms)?
I have a DataGridView in a Winforms application. I want to select a set
How can I check if a scrollbar is present on a datagridview in Winforms.
I have a DataGridView in WinForms. I am programmatically setting the selected row using:

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.