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);
}
↧
listview SetSelection not works in xamarin forms android
↧