Get the cell value from cellClick in ObjectListVie

2019-08-23 22:45发布

When I use the treeListView cellClick Event:

private void treeListView_CellClick(object sender, BrightIdeasSoftware.CellClickEventArgs e)

Using "CellClickEventArgs e", how can I find the current value (lets assume it is an Int32) of this specific cell?

2条回答
冷血范
2楼-- · 2019-08-23 23:28

Found the answer:

    private void treeListView1_CellClick(object sender, BrightIdeasSoftware.CellClickEventArgs e)
    {
        string s = e.SubItem.ModelValue.ToString();
    }
查看更多
爷的心禁止访问
3楼-- · 2019-08-23 23:39

I assume that CellClickEventArgs contains property that indicate Index of cell. Try to get it and then grab cell from treeListView by index.

查看更多
登录 后发表回答