Click here to Skip to main content
15,895,656 members

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)