Click here to Skip to main content
15,893,663 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Compiler Error Message: CS1061: 'GridViewCellsEdit' does not contain a definition for 'Message' and no extension method 'Message' accepting a first argument of type 'GridViewCellsEdit' could be found (are you missing a using directive or an assembly reference?)

Source Error:



Line 94: // Write out a history if the event
Line 95:
Line 96: this.Message.Text += "Single clicked GridView row at index " + _rowIndex.ToString()
Line 97: + " on column index " + _columnIndex + "
";
Line 98:


How to resolve this Error
Posted
Comments
navarie2 30-Nov-11 12:20pm    
this.Message.Text , this. point to GridViewCellsEdit. i guess it should point to your class ?. u should give more detail of code
Sergey Alexandrovich Kryukov 30-Nov-11 12:33pm    
Any information on your goal?
--SA

1 solution

Why are you asking us? You should ask yourself: where did you get the idea of non-existing member "Message"? We don't have any idea why did your think that such thing exists and what was your idea.

By the way, you also try to use string concatenation ('+') repeatedly which looks like you do not understand the performance implications due to the fact that the string is immutable. Instead, you should better use more effective and readable string.Format; in other cases (such as loops or other cases when the list of operands is not fixed) you should use System.Text.StringBuilder.

—SA
 
Share this answer
 
v2

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