CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2006
    Posts
    3

    Question I need help on Datalist-Urgent

    Hi,
    im doing some work on carting, ive added some element to cart-datalist like;
    Service Name : Amount
    service1 : 599$
    service2 : 199$
    service3 : 199$
    total: 997$

    If i am going to delete/remove service1, it is removed, but amount of service2 (199$) has to be get replaced with 599$, plz would u tell me how to do this, if u have some coding on this plz send it [email protected]
    Last edited by vinayvarma; April 5th, 2006 at 01:00 PM.

  2. #2
    Join Date
    Dec 2005
    Posts
    282

    Re: I need help on Datalist-Urgent

    Which datalist?

  3. #3
    Join Date
    Apr 2006
    Posts
    3

    Re: I need help on Datalist-Urgent

    im doing some work on carting, ive added some element to datalist ex:
    Service Name : Amount
    service1 : 599$
    service2 : 199$
    service3 : 199$
    total: 997$

    If i am going to delete/remove service1, it is removed, but amount of service2 (199$) has to be get replaced with 599$, plz would u tell me how to do this, if u have some coding on this plz send it [email protected]

  4. #4
    Join Date
    Oct 2002
    Location
    Lublin, Warsaw - Poland
    Posts
    35

    Re: I need help on Datalist-Urgent

    Hello,
    I'm not sure if I understood well what's your point.
    You've got a list like that:
    service1 : 599$
    service2 : 199$
    service3 : 199$
    total: 997$

    and after removing service1, you want your list to look like
    service2 : 599$
    service3 : 199$
    total: 798$,
    isn't it?

    If so, you just have to remove the name of service1, then move up all service names and delete last amount of the list. Total amount is easy to calculate
    Best Regards,
    Grzegorz Rycaj

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured