15,892,643 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 Waleed_Hassan (Top 29 by date)
Waleed_Hassan
9-Mar-13 7:31am
View
yes, u are right. but what i trying to do is automate this operation. i am using PHP and MySQL database.
Waleed_Hassan
18-May-12 7:23am
View
I have updated the combo box with values form col 2 as given in the example.
So, when user selects from the combo box and press the update button. i want the col 1 values to be fetched from table and update in another table.
Example.
Table 1
Col 1 P.K.
Col 2 some values
Col 3 Some values
I am loading the col 2 values in combo box. Now i try to find the col 1 values using col 2.
Waleed_Hassan
17-May-12 12:20pm
View
The value them self are not unique. For Example.
Table 1
Col 1 P.K.
Col 2 some values
Col 3 Some values
I am loading the col 2 values in combo box. Now i try to find the col 1 values using col 2.
Waleed_Hassan
14-May-12 13:21pm
View
I was basically using the Winform. But thanks i got the solution.
SelectedIndex Gets or sets the index specifying the currently selected item. (Overrides ListControl.SelectedIndex.)
Waleed_Hassan
14-May-12 12:25pm
View
I am using Visual Studio 2010.
Waleed_Hassan
12-May-12 11:55am
View
oh Right it was Products.
Thanks
Waleed_Hassan
12-May-12 11:47am
View
DS_product temp = new DS_product();
foreach (DS_product.ProductsRow product in dS_product1.Tables[0].Rows)
{
if (product[1].ToString() == txt_barcode.ToString())
{
temp.Tables[0].ImportRow(product);
}
}
if (temp.Tables[0].Rows.Count == 0)
{
DataRow addproduct = dS_product1.Tables["Product"].NewRow();
if (dS_product1.Tables["Product"].Rows == null)
{
addproduct[0] = "P1";
}
else
{
DataRow productID = dS_product1.Tables["Product"].Rows[dS_product1.Tables["Product"].Rows.Count - 1];
string last = productID[0].ToString();
int num = Convert.ToInt32(last.Substring(1, last.Length - 1));
num = num + 1;
addproduct[0] = Convert.ToSingle("P" + num);
}
addproduct[1] = txt_barcode.Text;
addproduct[2] = txt_pname.Text;
addproduct[3] = txt_pdescription.Text;
addproduct[4] = txt_pprice.Text;
dS_product1.Tables["Product"].Rows.Add(addproduct);
DA_product.Update(dS_product1);
actually a got another error.
Object reference not set to an instance of an object
on this line
DataRow addproduct = dS_product1.Tables["Product"].NewRow();
Waleed_Hassan
12-May-12 11:32am
View
Is there a way to access the product out side the foreach loop. I mean make a public or use any other variable which declared before foreach and we can use it in foreach.
Waleed_Hassan
12-May-12 9:16am
View
what if i like it to compare with a text box value?
select("Companyname" = textbox)
Waleed_Hassan
12-May-12 9:13am
View
Actually what i am trying to achieve is i want to search the table for user input value do see that it exists or not. To make sure there are no duplicate values on Bar code columns.
Waleed_Hassan
12-May-12 9:00am
View
DataRow[] addproduct = dS_product1.Tables[0].Select("Product_Barcode = '" + txt_barcode.Text + "'");
if (addproduct == null)
{
addproduct[] = dS_product1.Tables["Product"].NewRow();
}
i still get error on line addproduct[] = dS_product1.Tables["Product"].NewRow();
cannot implicitly convert datarow to datarow[]
Waleed_Hassan
12-May-12 8:43am
View
DataRow addproduct = dS_product1.Tables["Product"].Select[Product_Barcode = txt_barcode.Text];
when i type this code i get [Product_Barcode] secetion underline red with tool tip the name does not exists in current context.
Waleed_Hassan
12-May-12 8:32am
View
Actually i am trying to add new data in the table. So, i need to check that weather the specific entry exist or not in specific column. For Example
table [Product]
Col1 Product ID
Col2 Product Bar code
Col3 Product Name
I need to find that the user entry bar code exists or not.
Waleed_Hassan
12-May-12 8:24am
View
DataRow[] foundRows;
foundRows = dataSet1.Tables["Customers"].Select("CompanyName Like 'A%'");
i was trying something like above. But i cannot understand the Select("CompanyName Like 'A%'") part.!
Waleed_Hassan
11-May-12 13:07pm
View
Notw: According to Pakistan sms rate!
Waleed_Hassan
11-May-12 13:05pm
View
http://www.smsroaming.com/content/prices.php
Waleed_Hassan
11-May-12 8:43am
View
i have check it. they are giving 1.60 per SMS.
I have checked other websits they charge 0.455 per sms.
Sorry!
Waleed_Hassan
11-May-12 5:18am
View
hi infogmt
Do you have website. i like to visit to know about your packages.
Thanks
Waleed Hassan
Waleed_Hassan
7-May-12 12:22pm
View
Thanks ekolis, I will remove these errors. Aside from these. Any other error you find?
Waleed_Hassan
7-May-12 11:17am
View
It is just really small database. how can i just send you the picture to just review it. it is not so big.
Waleed_Hassan
7-May-12 5:37am
View
Is it easy to deploy such a server?
Kindly can you direct to some direction!!
Waleed_Hassan
10-Dec-11 13:45pm
View
Kindly give me some example code!
Waleed_Hassan
29-Nov-11 10:13am
View
I am using the Data adopter and data set in the project!
Waleed_Hassan
17-Nov-11 3:27am
View
I have visited the link I try to download the sample project. But it can not open in VS 2010. It converts the code in C# but it does not open.
Waleed_Hassan
13-Nov-11 14:41pm
View
thanks for it! Any more that you can find! Actually I have a wireless network! So it i need to work on wireless network!
Waleed_Hassan
13-Nov-11 2:44am
View
Pen Input, Ink, and Recognition
I have read this link.
But how do we start it! i mean any sample code and app??????????
Any SDK API needed to install??????
Waleed_Hassan
12-Nov-11 14:30pm
View
i have tried but no luck! Guess my searching technique is not good enough!
Waleed_Hassan
12-Nov-11 14:29pm
View
Pleas give me some link!
Waleed_Hassan
12-Nov-11 14:28pm
View
The second lost link was good i have read it. tell me how to get it running i mean any example code with app???????
Show More