Search code examples
c#objectlistview

Get the cell value from cellClick in ObjectListView's TreeListView


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?


Solution

  • Found the answer:

        private void treeListView1_CellClick(object sender, BrightIdeasSoftware.CellClickEventArgs e)
        {
            string s = e.SubItem.ModelValue.ToString();
        }