如何抓住eto ImageViewCell?

时间:2016-11-06 16:54:24

标签: forms gridview mouseclick-event eto

我的网格中有一列显示垃圾图标。单击时,我想捕获该单击并删除该行。

如何在ImageViewCell上点击?

1 个答案:

答案 0 :(得分:0)

gridControl.CellClick += Stats_CellClick;

private void Stats_CellClick(object sender, GridViewCellEventArgs e)
{
     if (e.Column == 3)
     {
         RulesDocAdapter rda = (RulesDocAdapter)e.Item;
         rda.Delete();
         UpdateRulesDoc(Globals.RulesDoc);
     }
}