Forum Xamarin.Forms

Remove first item from header in listiew xamarin forms

hi i have listview with header template grid-->boxview-->label

Initially I dont want to display that boxview ie, first item I dont want boxview to be displayed .. Also how to remove last ui item in listview i.e,

grid-->label-->label-->boxview .

How to acheive this



  • XamtasticXamtastic Member ✭✭✭
    edited September 2019

    You could edit/remove the ItemSource (i.e. ItemSource[0] / ItemSource[..ItemSource.Count()]) bound to the ListView.

    I'll do that sparingly, but usually have the Original list in the object as well (i.e. MyListOrigional, MyListDisplay)

  • XamtasticXamtastic Member ✭✭✭
    edited September 2019

    Sorry, I read that want a Control in the Template not to show.

    In that case, have a (bool) flag on that item and turn it on or off on binding. Research MVVM and Binding

Sign In or Register to comment.