The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
|
|
Datagrid Multi-Select
Posted: 30 Oct 07 11:10 AM
|
I am trying to use a datagrid to display data and if the user selects two rows and presses a button I want to "merge" those two records into one. The problem that I'm having is determining which two rows are selected. Has anyone been able to accomplish this?
Thanks, Ian |
|
|
|
Re: Datagrid Multi-Select
Posted: 31 Oct 07 4:06 AM
|
=========================================== Finding selected rows on multi-select grid: =========================================== ' Make sure PrimaryTableID is in the grid (and hide it)
Dim intIndex For intIndex = 0 To form.grdEvents.Selection.Count - 1 msgbox form.grdEvents.Selection.Item(intIndex) Next
|
|
|
|
Re: Datagrid Multi-Select
Posted: 31 Oct 07 12:45 PM
|
....what Mike said
Also, that code will only work if you add the primary ID value for the table to the grid and hide it. If you don't do that the Selection will return blank for each row. |
|
|
|