Beispiel #1
0
 private void SorotLV()
 {
     for (int i = 0; i < LV.Items.Count; i++)
     {
         if (LV.Items[i].Text == KendaliParameter.akunAktif)
         {
             LV.Items[i].Selected = true;
             LV.Select();
             break;
         }
     }
 }
Beispiel #2
0
 public void FocusListView()
 {
     ActiveControl = LV;
     if (LV.FocusedItem != null)
     {
         if (!LV.FocusedItem.Selected)
         {
             LV.FocusedItem.Selected = true;
         }
     }
     else
     if (LV.VirtualListSize > 0)
     {
         // TODO need select item with index 0
         LV.Items[0].Selected = true;
         LV.Select();
     }
     DoFocusedItemChanged();
 }