Click here to Skip to main content
11,574,494 members (57,047 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#2.0 .NET3.5
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 28-Jun-12 0:53am
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Try :
this.Name.Text = "xxx";
  Permalink  
Comments
Rahul Rajat Singh at 28-Jun-12 7:07am
   
+5.
Mehdi Gholam at 28-Jun-12 7:16am
   
Cheers
CHill60 at 5-Jul-13 13:54pm
   
I tried this in Visual C# 2010 Express and still got compile errors
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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.
  Permalink  
Comments
CHill60 at 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)

  Print Answers RSS


Advertise | Privacy | Mobile
Web04 | 2.8.150624.2 | Last Updated 5 Jul 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100