How to link label with entry inside list view.

Amit_Malhi01Amit_Malhi01 Member ✭✭
edited April 30 in Xamarin.Forms

I have a list view with view cell containing label and entry horizontally in code behind file. I want to save label value with entry value. How can i link label value with corresponding entry value in List View.

Best Answer

Answers

  • JohnHJohnH GBMember ✭✭✭✭✭

    @Amit_Malhi01 said:
    I have a list view with view cell containing label and entry horizontally in code behind file. I want to save label value with entry value. How can i link label value with corresponding entry value in List View.

    You want the label to show the same value as whatever is currently in the entry? Just bind them to the same model property.

  • Amit_Malhi01Amit_Malhi01 Member ✭✭
    edited April 30

    @JohnH Not exactly, i wanted to save different value in entry for particular label.

  • JohnHJohnH GBMember ✭✭✭✭✭

    @Amit_Malhi01 said:
    @JohnH Not exactly, i wanted to save different value in entry for particular label.

    Sorry, I don't quite follow what you are asking.

  • Amit_Malhi01Amit_Malhi01 Member ✭✭

    For example i have a list with Label Food items and i want to save food items quantity in entry in same view cell.

  • Amit_Malhi01Amit_Malhi01 Member ✭✭
Sign In or Register to comment.