473,379 Members | 1,245 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

Bug in DataGridViewColumn.HeaderText

After binding a DataGridView to a datasource and looping through the
columns to update the headertext, some captions get modified and some
don't.

Sample code copied from ms-help:

For Each column As DataGridViewColumn In EmployeesDataGridView.Columns
column.HeaderText = String.Concat("Column ", column.Index.ToString)
Next

Anybody else noticed this bug??? And maybe found a workaround?

Kind regards,
Werner Boelen
Nov 21 '05 #1
1 1574
"Werner Boelen" <we**********@hotmail.com> wrote in message
news:f1**************************@posting.google.c om...
After binding a DataGridView to a datasource and looping through the
columns to update the headertext, some captions get modified and some
don't.

Sample code copied from ms-help:

For Each column As DataGridViewColumn In EmployeesDataGridView.Columns
column.HeaderText = String.Concat("Column ", column.Index.ToString)
Next

Anybody else noticed this bug??? And maybe found a workaround?

Kind regards,
Werner Boelen


Datagridview is new in .net 2005.
Seeing as how that's beta, not surprised there are bugs.

You might find more helpful answers in one of the forums specific to 2005
discussion.
Might be a bug they already have fixed.
Dunno... I don't think I'll be using it until it's released.

--
Regards,
Andy O'Neill
Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: tsair | last post by:
When i add a new property into datagridviewcolumn, the property alway show null even i has been key in something in the property. how to solve this ? thank you
0
by: c j anderson, mcp | last post by:
Synopsis: DataGridViewColumn reorder does not update display, but a repopulation of underlying dataset does... I must be missing something obvious. I have a scenario where the underlying XML...
0
by: perspolis | last post by:
Hi all I created a customized DataGridViewColumn and added a property named AutoMerge like this private bool autoMerge=false; public bool AutoMerge{ set{this.autoMerge = value;}
0
by: Tsair | last post by:
I create a custom DataGridViewColumn from a usercontrol with Textbox and a button. After input the usercontrol textbox value and press Tab to next column, the value of the textbox does not show in...
5
by: Tsair | last post by:
I do a customise DataGridColumn with a UserControl (TextBox + Button for Calender), DataGridView does not show the data content of the column.
0
by: BlueBox | last post by:
hello, is there a way to bind to DataGridViewColumn.Visible property? unfortunately the code below doesn't work Binding bin = new...
1
by: John J. Hughes II | last post by:
I am trying to create a custom DataGridViewCell which is "NOT" derived from DataGridViewTextBoxColumn. The painting works fine but I am unable to get the control into edit mode. Do I need to...
7
by: SteveT | last post by:
I would like to create a customized DataGridViewColumn called DataGridViewCheckedListBoxColumn. I'd like the ability to multi-select items in the list. Does anyone know of an example of how this...
1
by: lbelkova | last post by:
Hello, I've created a custom DataGridViewColumn. Everything work well, except for some reason the column doesn't accept some of the chars: "q", "." and "'". Did anybody have a similar problem?...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.