Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
SumiSadiq
Posts: 148
Registered: ‎04-08-2013
My Device: Blackberry 10
My Carrier: Blackberry

Remove an item from the listview

HI,

Is it possible to remove one or two first items from the listview.

 

In my app, I fetch some data from the DB and put it in a datamodel and populate in a list view. It is a grid view. My first two items on the grid need to be dynamically updated with some value. So, I have decided to keep static tiles for my first two items, so that I can update it from c++ dynamically. Now, the datamodel I construct from the data from db contains these two items also. I want to omit those 2 items and put the rest of the data in the list view. Is it possible to do this?

I tried removeAt(indexPath) method but that dint help me.

 

Thanks

Please use plain text.
Developer
simon_hain
Posts: 16,044
Registered: ‎07-29-2008
My Device: Z10 LE
My Carrier: O2 Germany

Re: Remove an item from the listview

you should remove the items from the datamodel, this will remove them from the listview.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.