User Profile

Collapse

Profile Sidebar

Collapse
AllanJohnson
AllanJohnson
Last Activity: May 5 '12, 03:45 PM
Joined: Apr 27 '12
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • AllanJohnson
    replied to validate if item is already exists
    it gives error on this line
    Code:
    foreach(ID_ROW row IN DATABASE_TABLE)
    I changed the id_row to ProductID and DATABASE_TABLE to Products but it gives me error, by the way I am using visual studio 2010. And this code works well
    Code:
    listView1.View = View.Details;
     
                ListViewItem item2 = new ListViewItem(txtProductName.Text);
                item2.Checked = true;
                item2.SubItems.Add(txtProductPrice.Text);
    ...
    See more | Go to post

    Leave a comment:


  • AllanJohnson
    replied to validate if item is already exists
    thanks for the quick reply. I've tried it, but it seems not working or it's me that didn't know how to revise it well, maybe I lack something. I forgot to mention that I am using textbox that generated values from my database, following is my code for adding items in listview

    Code:
    listView1.View = View.Details;
    
                ListViewItem item2 = new ListViewItem(txtProductName.Text);
                item2.Checked = true;
    ...
    See more | Go to post

    Leave a comment:


  • AllanJohnson
    started a topic validate if item is already exists

    validate if item is already exists

    Hello everybody, please assist me if how to validate if the item you want to add in the cart is already exists in listView items? for example I already add CH001 which is the productId of Chocolate strawberry, then I accidentally add again that product Id and I what I want is that it should not be acccepted on my listview again because CH001 is already on my cart, I search many times about it, its been 1 week from now but I am not able to find how...
    See more | Go to post

  • AllanJohnson
    replied to Passing values in another textbox
    I am using ms access as my database and visual studio 2010 for my form
    and I am using DataSets, DataReader, DataAdpter.
    See more | Go to post

    Leave a comment:


  • AllanJohnson
    replied to Passing values in another textbox
    yes, youre right. Thanks for replying
    See more | Go to post

    Leave a comment:


  • AllanJohnson
    replied to Passing values in another textbox
    sorry for unclear question, my english is bad..
    yes, the values are from my database. Thanks for replying.
    See more | Go to post

    Leave a comment:


  • AllanJohnson
    started a topic Passing values in another textbox

    Passing values in another textbox

    Please help! kinda urgent...so please please help.
    I have an ms access database with 2 tables in it which I named Customers and Products. I am using visual studio 2010, in my windows form I have 4 textboxes and 3 button in it, for my 1st textbox when I entered one of my ProductCode such as 10111, then press the Display button, the other remaining 3 textboxes should populate and display the following;
    ProductID: CH001
    ProductName:...
    See more | Go to post
No activity results to display
Show More
Working...