Home Forums WinForms controls Xceed Grid for WinForms Getting data from a row.

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

    I would be a newbie to the Grid.

    What I am interested in, is doing a dbl-click or right-click on the row to bring up an edit window for the data that is selected.  In the past with other  applications, I would have a hidden column that stored the ID of that particular data.  So, when selected, I would get the ID, select the data from the database and populate the edit window.  Would that be the same with this grid?  What have others done?  Is there a better way?

    If I were to use the IBindList as the datasource, can I access the underlying class that was used for that row? 

    Thank you,

    Chuck 

    Imported from legacy forums. Posted by Chuck (had 1376 views)

    User (Old forums)
    Member
    Post count: 23064

    Well, I found a solution that works.  I found a post that gave me an idea.  My grids datasource will be an arraylist and that arraylist will hold my data classes.  When the user wants to edit a row, I get the index and that index refers to the index in my arraylist.  I then can pass the class to the edit window.

    If that does not sound right, please comment.

    Chuck 

    Imported from legacy forums. Posted by Chuck (had 1779 views)

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