Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

listview SetSelection not works in xamarin forms android

$
0
0

if (gurbaniPothiViewModel.IsFromSearch)
{
var res = gurbaniPothiViewModel.PothiDisplayList.Where (x => x.PothiText.Equals (gurbaniPothiViewModel.SearchText)).FirstOrDefault ();
if (res != null)
{
this.Control.ClearFocus ();
this.Control.SetSelection(res.PothiIndex);
///this.notifyDataSetChanged();
}
}
else {
this.Control.SetSelection (gurbaniPothiViewModel.GurbaniPothiAppearingInfo.PothiSaveInfo [gurbaniPothiViewModel.GurbaniPothiNumber].PothiIndex);
}


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>