SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot diskhub's Avatar
    Join Date
    Jun 2004
    Location
    singapore
    Posts
    161
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    GridView NewEditIndex

    Hi all,
    I managed to do a small shopping cart for my school project and
    with a gridview to display the item in my cart.



    In this gridview, I have an edit text which when I clicked on it, the Quantity cell will appear a textfield for user to edit the quantity. I added the NewEditIndex to the quantity field.

    How can I change it to a dropdownlist instead of a textfield?
    Cos I want to limit the quantity that the user can choose depending on the inventory of that item?

    Please advise me, experts...
    I LOVE PHP!!!

  2. #2
    Chopped Liver bronze trophy imaginekitty's Avatar
    Join Date
    Aug 2007
    Location
    Pennsyltucky
    Posts
    1,494
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Try "Convert this field into a TemplateField" in Edit Columns

    Then in the EditItemTemplate for the Quantity field change the textbox to a DropDownList control.

    That's a start. I think.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •