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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T16:50:10+00:00 2026-05-11T16:50:10+00:00

Trying to use a DataGridView like the old VB6 FlexGrid, and add the coloumns

  • 0

Trying to use a DataGridView like the old VB6 FlexGrid, and add the coloumns manually via addrow (built a Row containing TextCells) and my Coloums are all added (and display ok) but as soon as I try to add a row I get the message “Rows cannot be programmatically added to the DataGridView’s rows collection when the control is data-bound.” But for love nore god can I see a way of setting it as a unbound control (I’ve not set the datasourc to anything)

So two questions really,

  1. is there a better control to use ?
  2. is there way to set a DataGridView to be an unbound control

And a final third question

  1. How do you add row manually ?

Snippet of how I’ve done it do far

Thanks in advance

                  Dim lRow As New DataGridViewRow

                    Dim lCell As New DataGridViewTextBoxCell
                    lCell.Value = "Cell 1"
                    lRow.Cells.Add(lCell)

                    lCell = DataGridViewTextBoxCell
                    lCell.Value = "Cell 2"
                    lRow.Cells.Add(lCell)

                    DataGridView1.Rows.Add(lRow)
  • 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-11T16:50:10+00:00Added an answer on May 11, 2026 at 4:50 pm

    Is there a better control to use?

    A bit subjective but I would say no. DataGridview is going to give you the most flexibility for building a grid like structure. It’s extremely flexible and almost certainly fit your scenario

    Is there a way to set a DataGridView to be an unbound control

    Yes. Make sure the DataSource property is set to Nothing. This will force it into an unbound mode. As soon as you set this property to anything it will become a bound control

    DataGridView1.DataSource = Nothing ' force unbound
    

    How do you add a row manually?

    Exactly as you’ve done. Once it’s unbound this will work.

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

Sidebar

Ask A Question

Stats

  • Questions 125k
  • Answers 125k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Message queues are implemented by many Unices. POSIX message queues.… May 12, 2026 at 5:11 am
  • Editorial Team
    Editorial Team added an answer You can use: myString = Regex.Replace(myString, "/kg", "", RegexOptions.IgnoreCase); If… May 12, 2026 at 5:11 am
  • Editorial Team
    Editorial Team added an answer We found out what the issue was. There was a… May 12, 2026 at 5:11 am

Related Questions

I'm trying to develop a small utility (a WinForms app) and I was hoping
I'm having trouble getting a filter to work on a BindingSource that is the
I am developing a WinForms app using .NET 2.0 and am trying to use
I'm trying to print out a DataGridView using a PrintDocument. In my PrintPage event

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.