for (int i = 0; i < listView.Items.Count; i++)
{
//lay ListViewItem tại vi trí index
ListViewItem lvItem = listView.ItemContainerGenerator.ContainerFromIndex(i) as ListViewItem;
if (lvItem != null && lvItem.Tag != null && lvItem.Tag.GetType() == typeof(Boolean))
{
Boolean b = (Boolean)lvItem.Tag;
if (b == true)
{
indexList.Add(i);
}
}
}
1 comment:
good job! thank you very much !
Post a Comment