Click here to Skip to main content
15,886,840 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Cannot implicitly convert type 'string' to 'System.Windows.Forms.DataGridViewTextBoxColumn'	D:\abc folder\XXX.designer.cs


can u help me how to resolve this error..

the error is showing in the below line

this.Name = "xxx";
Posted

Try :
C#
this.Name.Text = "xxx";
 
Share this answer
 
Comments
Rahul Rajat Singh 28-Jun-12 7:07am    
+5.
Mehdi Gholam 28-Jun-12 7:16am    
Cheers
CHill60 5-Jul-13 13:54pm    
I tried this in Visual C# 2010 Express and still got compile errors
I encountered the same issue and found the problem. The error was caused by having a DataGridView column named 'Name'. Changing the column name from 'Name' to something else fixed the problem.
 
Share this answer
 
Comments
CHill60 5-Jul-13 13:53pm    
My +5 - this solution does actually work - and of course Reserved Words should be avoided anyway. I couldn't get solution 1 to work at all.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900