Subject Re: [IBO] Need help to find out the current selection of an IB_Grid
Author Jason Wharton
As I said, there is a method which will get selected bookmarks. If it
returns and empty list then none are selected.

Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com


----- Original Message -----
From: "Jeroen W. Pluimers (All I'M)" <jeroen.mailings@...>
To: <IBObjects@egroups.com>
Sent: Friday, December 29, 2000 1:28 PM
Subject: RE: [IBO] Need help to find out the current selection of an IB_Grid


> > > 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
>
>
>
>
>