Click here to Skip to main content
12,240,781 members (58,637 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C#2.0 .NET3.5 C# .NET
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 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
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 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
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160426.1 | Last Updated 5 Jul 2013
Copyright © CodeProject, 1999-2016
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