15,949,741 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 .NET 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 10717094 (Top 15 by date)
Member 10717094
26-Jun-14 10:30am
View
Thanks for the hint
Member 10717094
26-Jun-14 9:53am
View
Where should i trigger that from loading it in datagridview or when loading it in picture box can u give example? Ty for ur time
Member 10717094
29-May-14 23:17pm
View
thanks Damith it works fine
Member 10717094
29-May-14 23:07pm
View
do i have to use sqldatareader and what condition to use?
thanks for ur reply
Member 10717094
9-May-14 19:32pm
View
Thanks a lot Andrius
Member 10717094
25-Apr-14 16:28pm
View
this is just my hobby and i am really very sorry if i got in your way. no offense sir Wes, anyway thanks for your time. And thanks also to every other people who really helps newbie in c#. Salute you guys :)
Member 10717094
24-Apr-14 22:59pm
View
I am just asking question well if you do not have some tips or some helpful answer then shut up.
Member 10717094
24-Apr-14 10:07am
View
i am just new csharp at least some pointers or tips to do it :)
Member 10717094
15-Apr-14 10:14am
View
i have a datagridview unbound.
1 button add new
6 textbox search,description,dosage,qty,selling price,amount
search is a filter for the pop up form displaying choices of items to choose and passing
it to the line then input qty and first line will be complete and when button addnew is clicked first line will be moved to the dgv then all textbox will be cleared to start a new line. that's where my problem comes. when try searching again the event on the description is not activating. is there any alternative approach for inserting multiple lines before saving to database. i am new to c# and glad if you will contribute to my learning. thanks
Member 10717094
15-Apr-14 9:14am
View
Deleted
type letter in the txtSearch then upon entering txtDesc a form will pop up with filtered values from the letter from txtSearch then choosing an item from the pop up and inserting it in the line to complete the details the inserting the line in a datagridview. that's the flow.
Member 10717094
15-Apr-14 8:45am
View
i chose enter event coz the previous control is a search textbox that's why calling of form would be activated with no keypress in the next textbox control, i tried textchanged but it just triggers when there is changes on the textbox enter event is most ideal but my problem is it cant be refreshed to be used to the next line. is there any other approach for putting multiple lines in one transaction as per item sales.
Member 10717094
11-Apr-14 4:05am
View
Thanks Peter
Member 10717094
11-Apr-14 3:31am
View
can you give me an alternate query?
Member 10717094
11-Apr-14 3:29am
View
sqlCon.Open();
SqlCommand cmd = new SqlCommand("Update ItemInfo set Item_Name=@Item_Name, Dosage=@Dosage, Generic_Name=@Generic_Name, Supplier_Name=@Supplier_Name where (Item_Name=@Item_Name)", sqlCon);
cmd.Parameters.AddWithValue("@Item_Name", txtItemDescription.Text);
cmd.Parameters.AddWithValue("@Dosage", txtDosage.Text);
cmd.Parameters.AddWithValue("@Generic_Name", txtGeneric.Text);
cmd.Parameters.AddWithValue("@Supplier_Name", comboSupplier.Text);
cmd.ExecuteNonQuery();
sqlCon.Close();
MessageBox.Show("Successfully Updated", "Completed !", MessageBoxButtons.OK);
message successfully updated. when the data on Item_Name is the one to update, no changes to database. other fields were perfectly updating except the one i put in the condition on sql query
Member 10717094
11-Apr-14 3:22am
View
Deleted
the @Supplier_Name is in the 4th Parameter. Supplier name is another field in my database. my only problem is all column were updating except the Item_Name which i had as condition in where query. when i try updating the the other fields success except for the item name
Show More