CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 1 of 1

Threaded View

  1. #1
    Join Date
    Apr 2004
    Posts
    102

    DataGridView issue

    I'm using Chris Holmes' excellent blog on WCF as a tutorial. The blog can be found at http://www.chrisholmesonline.com/200...plex-services/. Unfortunately, I attempted to change the DataGridView and now I have an unwanted column that I just cannot figure out how to delete. The name of the column is IsNew and it has a checkbox. When I go into the Designer View for the form and select Edit columns, this column does not appear in the list. I just don't know where this column is being created and how to delete it.

    I've attached a screenshot of the the column

    Any assistance would be greatly appreciated.

    Thanx

    Update: After a lot of experimentation, I came across the following solution...

    Code:
    _dataGridView.AutoGenerateColumns = false;
    It resolves the problem since it apparently hides the autogenerated column which leads me to my next question. What purpose do the autogenerated columns such as IsNew serve?
    Attached Images Attached Images
    Last edited by BobS0327; March 31st, 2011 at 08:46 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured