Home Forums WinForms controls Xceed Grid for WinForms Accessing underlying object in bound grid

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #14659 |

    If I have a grid that is bound to a list, say:

    general idea of code:

    List<Foobar> _List = new List<Foobar>();
    _List.Add(new Foobar());

    GC.SetDataBinding(_List,””);

    Now, I have an event fires on Cell DoubleClick.

    In that event, I have access to the Cell and the Parent row, is there any way to get at the underlying data object to which it is bound?

    Thanks,
    kiwi

    Imported from legacy forums. Posted by greenkiwi (had 1906 views)

    User (Old forums)
    Member
    Post count: 23064

    Scratch that…

    SourceObject does the trick… I must be blind.

    Thanks,
    a

    Imported from legacy forums. Posted by greenkiwi (had 2817 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.