15,895,656 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 Member 12270013 (Top 6 by date)
Member 12270013
19-Feb-19 10:43am
View
well I am new to MVC and unable figure out, which 'src' you made change in? I encountered this recently.
Please help!
Member 12270013
21-Dec-18 3:50am
View
Can you be a bit more precise on the requirement.
please clarify whether,
1. "Part of SQL query" refers to a specific "Column" only, which you trying to SELECT?
eg query: SELECT empName FROM EMPLOYEES --do you need 'empName' as output to show in datagrid and not its data ?
2. "column from SQL query 'TabPrikazMzdyAZmetky.DatPorizeni' to datagridview column name 'Date'" : You want data of that column name itself to be binded to date column of datagrid? OR data under 'TabPrikazMzdyAZmetky.DatPorizeni' to your date Column of datagrid.
Member 12270013
13-Jun-18 2:11am
View
Firstly, where you are willing to bind both dropdowns? on pageload OR seperate method?
1) If Both are to to be binded on pageload : Change SQL query to bring both columns detail and then Use Linq to seperate it into lists and bind he lists to respective dropdowns.
2) If they are To be Binded seperately : Then You have straight forward answer. As you have made it for "IPAddress" Column, change that Column name to "MachineName".
Member 12270013
12-Jun-18 9:00am
View
I Have updated the solution.
please note, the value of rowValue is assumed to be a comma separated value. I hope it is the same way in your case too.
Member 12270013
12-Jun-18 3:45am
View
when you say 'Looping' you iterate through every single piece of string. i.e. every char in it & now you can divide that single digit by 10000. (but is that really what you need)
Now, other way around your question may be, "Condition checking on the whole string" if its a digit and then performing division on the whole string
then Do you mean to use
1> Mode(%) operation to divide the TrainNumber and get remainder?
This divides the string like (123456 % 10000) = 3456(result you get)
Now perform operations based on "3456"
OR
2> Divide(/) operation on TrainNumber and get Quotient?
This Divides string like (123456 / 10000) = 12.3456 (result you get)
Member 12270013
12-Jun-18 3:07am
View
do you mean, the string is to be looped for checking every character in it? and based on that character you are going to perform some operations. Is that what you seeking for?
Also you could provide a Base string you have in row[TrainNo] and Output/decision you want as result after dividing.
Show More