Home Forums WinForms controls Xceed Grid for WinForms Getting related data item for multiple selected rows

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

    Hi, I can’t seem to figure out how to do something that I imagine is actually quite simple.

    With the grid set to multi-select, I need to be able to retrieve the data objects that they are bound to, but the selected rows collection doesnt seem to have the sourceobject property. How should i be approaching this?

    Imported from legacy forums. Posted by stephen (had 412 views)

    Xceed Support
    Member
    Post count: 5658

    I’m not sure to completely understand the problem here. The SelectedRows collection directly contains reference to the DataRows inside the GridControl.

    string cellValue = ((Xceed.Grid.DataRow)gridControl1.SelectedRows[0]).Cells[0].Value;

    Imported from legacy forums. Posted by CharlesB (had 782 views)

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