Forum Xamarin Xamarin.Forms

Dynamic fields in listview...suggestion

AnthonyYesAnthonyYes USMember ✭✭

I am creating a dynamic forms. Basically i have a listview that contains all the possible fields. Based on the data i will only show ONE field type per row.

Question, how do i only show 1 field based on a property called typeid.
eg. typeid=1 Show Label typeid=2 Show Checkbox typeid=3 Show Picker

Is this the best approach acceptable for the moment( i know i can improve it)?



  • JoeMankeJoeManke USMember ✭✭✭✭✭

    Use a DataTemplateSelector.

  • AnthonyYesAnthonyYes USMember ✭✭

    Im using a DataTemplateSelector but the list rows are all read only and my templates that include textentry, picker not showing? Any reason for this?

Sign In or Register to comment.