开发者

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);
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜