ListView1_ItemChecked event in c# 2008
How to call the ListView1_ItemChecked event开发者_Go百科 in the buttonclick event?
Assuming you are trying to simulate the checked event.
void Button1_Click(object sender, EventArgs args)
{
ListViewItem item = // get the item you want
ItemCheckedEventArgs checkedArgs = new ItemCheckedEventArgs(item);
ListView1.ItemChecked(sender, checkedArgs);
}
精彩评论