15,911,035 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 9611735 (Top 37 by date)
Member 9611735
25-Apr-13 10:45am
View
Deleted
Thank you for your help. The < and > worked great. You are a star!!
Member 9611735
25-Apr-13 10:04am
View
I'm not using sms. I have a hosted mysql dbase
Member 9611735
25-Apr-13 9:36am
View
It was originally a date field but I changed it to datetime but it still isn't working
Member 9611735
25-Apr-13 9:15am
View
When I enter .Value it brings up an error. Do i require another reference??
Member 9611735
24-Apr-13 23:16pm
View
it looks as if it isn't querying correctly due to the differing formats. Do you know how I can change datepicker format 13/04/2013 12:00:00 AM to 2013-04-13?
Member 9611735
23-Apr-13 23:48pm
View
I am trying to filter my datagrid using datepickers but it's not matching with any dates stored in dbase. Am I quering my dbase correctly? Should I be using datepicker1.text or something else?
Member 9611735
22-Apr-13 17:22pm
View
I will take that on board. thank you!
Member 9611735
22-Apr-13 17:21pm
View
Thank you for replying. Unfortunately it doesn't work. Dates in my database are saved in format 2013-04-11. Would i need to change the format of date field? My datepickers are named datepicker1 and datepicker2.
Member 9611735
22-Apr-13 17:12pm
View
No, sorry I meant datepicker 1 and datepicker2
Member 9611735
22-Apr-13 7:11am
View
Dataset is returned empty eventhough there are values matching date recorded in dbase. Could it be something about conflicting string formats?
Member 9611735
10-Apr-13 11:54am
View
the column already exists in table, I just want to extend query and insert value into column
Member 9611735
10-Apr-13 11:23am
View
Question has been updated with code
Member 9611735
10-Apr-13 10:51am
View
thank you for your help CHill60. I have decided to make a temporary transactions table to help me with my problem.
Member 9611735
9-Apr-13 17:59pm
View
Thank you very much for getting back to me. Unfortunately I am using WPF datagrid and your code doesn't work.
Member 9611735
9-Apr-13 10:32am
View
Thank you!
Member 9611735
9-Apr-13 10:32am
View
I will take that on board. Thank you!
Member 9611735
9-Apr-13 9:30am
View
I am unsure how to do that. Can you give me some pointers?
Member 9611735
8-Apr-13 18:26pm
View
i'm trying to bind the button in code. I am writing a if statement where if the user fill in all fields in the form and clicks the button-the page changes. If the user doesn't fill in all the fields a error appears and the page doesn't chage
Member 9611735
8-Apr-13 17:52pm
View
You are wonderful! thank you, your solution works a treat
Member 9611735
5-Apr-13 16:07pm
View
XAML code:
combobox grid.column="2" grid.row="2" height="23" horizontalalignment="Left" margin="0,17,0,0" name="comboBox3" verticalalignment="Top" width="120" selectionchanged="comboBox3_SelectionChanged"
comboboxitem name="five">5
comboboxitem name="ten">10
comboboxitem name="fifteen">15
comboboxitem name="twenty">20
comboboxitem name="twentyfive">25
comboboxitem name="thirty">30
Label Grid.Column="5" Grid.Row="1" Height="28" HorizontalAlignment="Left" Margin="0,24,0,0" Name="label1" VerticalAlignment="Top" Width="117" Grid.ColumnSpan="2"
Member 9611735
5-Apr-13 15:57pm
View
Unfortunately your solution didn't work as it didn't recognise the SelectedItem.Value.ToString() part.
Member 9611735
5-Apr-13 15:54pm
View
the string value stored in label1 is 9,00. Do you think I am carrying out the calculation in the right way i.e should I be changing the values to decimals?
Member 9611735
5-Apr-13 15:44pm
View
Still reports the error Input string was not in a correct format. In label1 is the price of the product, in the combobox is the available quantities.
Member 9611735
5-Apr-13 13:06pm
View
When i just print the above I get system.windows.control.comboboxitem error
Member 9611735
4-Apr-13 0:54am
View
question updated
Member 9611735
3-Apr-13 16:44pm
View
There is definitely something wrong with the query. I played about with the code and by specifying the name of teacher all the textboxes were populated with the correct data from database. Any suggestions?? Thank you so much for your help thus far.
Member 9611735
3-Apr-13 16:19pm
View
Deleted
It's been updated
Member 9611735
3-Apr-13 15:38pm
View
I tried specifying the query by adding a where clause to query and specifying a name. Now when I debug the textbox is populated with System.Data.DataRow
Member 9611735
3-Apr-13 15:23pm
View
yes name is the column name. Do i need to bind my textbox with the table in xaml or anything? Am i using the correct code to add the result into textbox?
Member 9611735
3-Apr-13 14:51pm
View
I added in NameBox.Text = DS.Tables[0].Rows[0].ToString(); after your newly posted solution and this error occurred
There is no row at position 0.
Member 9611735
3-Apr-13 14:33pm
View
Yes there is two records in the database. It's mySQL database. I am getting combobox values from the same table in the database and it's working fine
Member 9611735
3-Apr-13 14:26pm
View
Yes teacher is the name of the table. My connection string is
string connectionSQL= "server=sql.byethost27.org;user id=xxxxxxx;password=xxxxxxxxxx;database=xxxxxxxxxx";
Member 9611735
3-Apr-13 14:20pm
View
There is still nothing in dataset
Member 9611735
3-Apr-13 12:51pm
View
Your solution throws up the following error Error 1 'MySql.Data.MySqlClient.MySqlCommand' is a 'type' but is used like a 'variable'. I've tried changing it to different things but dataset is still empty
Member 9611735
3-Apr-13 12:15pm
View
I just checked and it's not. Do you think there is something wrong with my query?
Member 9611735
3-Apr-13 12:05pm
View
Thank you. I changed my code but the textboxes are still not being populated
Member 9611735
2-Apr-13 8:31am
View
Question edited!
Show More