Home Forums WinForms controls Xceed Grid for WinForms Retrive data from grid via button

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

    I’m working on a VB.net project.

    So I’ve got a list of items (order history) along with other information and I’m displaying it using the Grid Control.  I want to be able to select a row, then click a button to pop open another form that will allow the user to add that item to the order.

     How do I reference the cells that are in that selected row with a button?

    Imported from legacy forums. Posted by Alan (had 1203 views)

    Xceed Support
    Member
    Post count: 5658

     

    Hi Alan,

    The Xceed GridControl class has the property SelectedRows that you could pass as a parameter to the constructor of the other form in the handler of the click event of your button. You could then iterate over this collection of DataRows and then over the Cells property.

    Imported from legacy forums. Posted by Mohamed [Xceed] (had 1397 views)

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