Subject RE: [IBO] Need help to find out the current selection of an IB_Grid
Author Jeroen W. Pluimers (All I'M)
> > I have an application where I want to copy data between two grids.
> > However, that is only possible when a record is selected in a grid.
> >
> > How can I find out if that is the case?
>
> Use the Selected[] property of the dataset and use the RowNum to
> see if the current row is selected. You can also populate a
> string list with bookmarks of multi-selected records and then work
> through the list of them and copy the records from one dataset
> to the other.

At first I could not find IB_Grid.Selected and IB_Grid.RowNum, but then I
realized this is at the DataSet level, so I tried IB_BDataSet.Selected and
IB_BDataSet.RowNum.

However, the information I need is if ANY row (or NONE at all) is selected
(to make up for multi-row selections in the future). Is there a short way
for this, or do I need to walk the Selected[] for all rows (and if so, how
do I find the min and max RowNum I can use)?.

Jeroen W. Pluimers
All Information Management
http://www.all-im.com