Click here to Skip to main content
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 1: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
0 OriginalGriff 195
1 ProgramFOX 130
2 Maciej Los 105
3 Sergey Alexandrovich Kryukov 85
4 Afzaal Ahmad Zeeshan 82
0 OriginalGriff 6,564
1 Sergey Alexandrovich Kryukov 6,048
2 DamithSL 5,228
3 Manas Bhardwaj 4,717
4 Maciej Los 4,150


Advertise | Privacy | Mobile
Web04 | 2.8.1411022.1 | Last Updated 5 Jul 2013
Copyright © CodeProject, 1999-2014
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