Link to home
Start Free TrialLog in
Avatar of Tom Knowlton
Tom KnowltonFlag for United States of America

asked on

Cannot rename DataGridView column to another name.

This is not working:

this.dataGridViewImportFileCandidate.Columns[_columnnumber].Name = newname;


What settings might be preventing me from making this assignment?


Thank you,


Tom
Avatar of jppinto
jppinto
Flag of Portugal image

Doesn't this works?

dataGridViewImportFileCandidate.column[0].Name = newname;
Can't you change on your SELECT statment? For example:

SELECT
     some_field_or_fields AS TITLE1,

ASKER CERTIFIED SOLUTION
Avatar of jppinto
jppinto
Flag of Portugal image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Tom Knowlton

ASKER

HeaderText!!!!