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?
Imported from legacy forums. Posted by Chuck (had 1376 views)
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.
Imported from legacy forums. Posted by Chuck (had 1779 views)