15,918,889 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Angelo L (Top 9 by date)
Angelo L
24-Apr-17 19:14pm
View
I updated the solution. Check my comments on what I did.
Angelo L
21-Apr-17 23:04pm
View
Either rootjson needs to be declared where it is in scope for all classes you want to use it in or it needs to be an input to the constructors or to the methods of the other classes you are using it in.
Angelo L
21-Apr-17 12:48pm
View
Glad to have helped.
Angelo L
20-Apr-17 20:25pm
View
It looks to me like your code is adding data every time the comparison fails inside the loop, but since you don't break the loop you continue to iterate through. For the if statement after you display the error message you should break to exit the for loop. You shouldn't do the else statement unless you've looked at all of the rows already, meaning you iterated through and didn't go into the if statement and break. So change the else to something like 'else if (i == GridView1.Rows.Count - 1)'.
Angelo L
20-Apr-17 19:13pm
View
Using the debugger, have you verified the strings you are comparing in the if statement, GridView1.Rows[i].Cells[4].Text and DropDownList2.SelectedValue.ToString()?
Angelo L
19-Apr-17 13:35pm
View
If your numbers contain some kind of formatting you should probably check out
Int32.TryParse Method (System)
[
^
] or do your own validation. But you should use the debugger and see what the string is that is breaking your conversion first.
Angelo L
17-Apr-17 1:16am
View
If you mean you tried using ternary to rewrite the if/else then it didn't work because: condition ? first_expression : second_expression ----> first_expression and second_expression must be of the same type or be able to implicitly convert into the same type. You have a List<string> that you're adding for one side and a boolean on the other. By definition that won't work in a ternary operation.
Angelo L
16-Apr-17 3:15am
View
You could try using the ToolTip anyway. You say it's a click event? Then use the click event to set the ToolTip's IsOpen property to True.
Angelo L
1-Apr-16 12:26pm
View
This is correct, doubly so, since the where operator requires that the lambda return a boolean.
Show More