M
Marc Ambrosius
Hello,
does anybody know when is the FocusedItem property of a ListView updated?
Using the code below I try to set the Focus to the next item. In the full
..NET Framework it works like this. In the .NET Compact Framework the
FocusedItem property does not change and the next time this code is reached
it is working on the same item again.
listView1.FocusedItem.Checked = !listView1.FocusedItem.Checked;
if (listView1.FocusedItem.Index < listView1.Items.Count - 1)
{
listView1.Items[listView1.FocusedItem.Index + 1].Selected = true;
listView1.Items[listView1.FocusedItem.Index + 1].Focused = true;
}
Thanks in advance,
Marc
does anybody know when is the FocusedItem property of a ListView updated?
Using the code below I try to set the Focus to the next item. In the full
..NET Framework it works like this. In the .NET Compact Framework the
FocusedItem property does not change and the next time this code is reached
it is working on the same item again.
listView1.FocusedItem.Checked = !listView1.FocusedItem.Checked;
if (listView1.FocusedItem.Index < listView1.Items.Count - 1)
{
listView1.Items[listView1.FocusedItem.Index + 1].Selected = true;
listView1.Items[listView1.FocusedItem.Index + 1].Focused = true;
}
Thanks in advance,
Marc