开发者

How to detect draw of last row in a Listview to retrieve the next set of data?

开发者 https://www.devze.com 2022-12-20 02:41 出处:网络
I am looking for a way like Social N开发者_如何学Goetworks site retrieve additional data when the last record is visible to user.

I am looking for a way like Social N开发者_如何学Goetworks site retrieve additional data when the last record is visible to user.

How I am able to do that for a ListView in Compact Framework (c# mobile app).

Still looking for answers 2


You need to do a custom-drawn ListView. Even if you simply use the base implementation for the draing, the CDDS_ITEMPREPAINT will tell you the index of the item it's trying to paint. You can use that to determine where in the list you are.


If you override ToString() on your objects, I would expect that you would get hit whenever the items are drawn.

0

精彩评论

暂无评论...
验证码 换一张
取 消