Subject | RE: [IBO] Selected rows in TIB_GRID |
---|---|
Author | Riho-Rene Ellermaa |
Post date | 2002-01-29T13:04:20Z |
TStringList *StringList=new TStringList();
(dynamic_cast<TIB_BDataset*>(DSource->Dataset))->SelectedBookmarks(StringLis
t);
if(StringList->Count==0)
{ //nothing selected
}
else
{ for(int i=StringList->Count-1;i>=0;i--)
{ DSource->Dataset->Bookmark=StringList->Strings[i];
...
...
// Do something here
}
}
Riho-Rene Ellermaa
senior programmer
Hansabank
-----Original Message-----
From: admforum [mailto:remco_kortekaas@...]
Sent: Tuesday, January 29, 2002 2:57 PM
To: IBObjects@yahoogroups.com
Subject: Re: [IBO] Selected rows in TIB_GRID
Ales,
The closest thing to your hint I found was: 'selectedBookmarks'.
It isn't clear to me at all how to make use of those bookmarks except
for the fact the exist within a Stringlist.
I'm trying to create a dialog with two TIB_GRIDS, each showing a
seperate table. user-selected rows in the first Grid/Table have to be
inserted in the other (table).
Do you think this Bookmark thing possibly will work (and how)?
Thanks,
Remco.
(dynamic_cast<TIB_BDataset*>(DSource->Dataset))->SelectedBookmarks(StringLis
t);
if(StringList->Count==0)
{ //nothing selected
}
else
{ for(int i=StringList->Count-1;i>=0;i--)
{ DSource->Dataset->Bookmark=StringList->Strings[i];
...
...
// Do something here
}
}
Riho-Rene Ellermaa
senior programmer
Hansabank
-----Original Message-----
From: admforum [mailto:remco_kortekaas@...]
Sent: Tuesday, January 29, 2002 2:57 PM
To: IBObjects@yahoogroups.com
Subject: Re: [IBO] Selected rows in TIB_GRID
Ales,
The closest thing to your hint I found was: 'selectedBookmarks'.
It isn't clear to me at all how to make use of those bookmarks except
for the fact the exist within a Stringlist.
I'm trying to create a dialog with two TIB_GRIDS, each showing a
seperate table. user-selected rows in the first Grid/Table have to be
inserted in the other (table).
Do you think this Bookmark thing possibly will work (and how)?
Thanks,
Remco.
--- In IBObjects@y..., <akahanek@q...> wrote:
> I think you can use the TIB_Query.SelectedRows(var: AStringList)
method,
> which populates the supplied TStringlist object with the bookmarks
to
> selected records.
> Ales
>
> -----Original Message-----
> From: admforum [mailto:remco_kortekaas@h...]
> Sent: Tuesday, January 29, 2002 11:01 AM
> To: IBObjects@y...
> Subject: [IBO] Selected rows in TIB_GRID
>
>
> Hi,
>
> Excuse me for probably asking a very simple thing. But I'm new to
IBO
> and sometimes things get too much for me :-)
>
> I'm looking for a way to retrieve the user selected rows
(<CTRL><LEFT
> MOUSE BUTTON> on row) in a TIB_GRID.
>
> Can't seem to find this topic in the help files.
>
> Thanks,
> Remco.
>
>
>
>
______________________________________________________________________
__
> ___
> IB Objects - direct, complete, custom connectivity to Firebird or
> InterBase
> without the need for BDE, ODBC or any other layer.
>
______________________________________________________________________
__
> ___
> http://www.ibobjects.com <http://www.ibobjects.com> - your IBO community
resource for Tech Info
> papers,
> keyword-searchable FAQ, community code contributions and more !
>
>
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/ <http://docs.yahoo.com/info/terms/>
Yahoo! Groups Sponsor
ADVERTISEMENT
<http://rd.yahoo.com/M=218512.1856015.3360178.1269402/D=egroupweb/S=17050071
83:HM/A=928901/R=0/*http://ad.doubleclick.net/clk;3788034;6800959;v%3fhttp:/
/www.verisign.com/cgi-bin/go.cgi?a=b228473240057000>
<http://us.adserver.yahoo.com/l?M=218512.1856015.3360178.1269402/D=egroupmai
l/S=1705007183:HM/A=928901/rand=126641016>
___________________________________________________________________________
IB Objects - direct, complete, custom connectivity to Firebird or InterBase
without the need for BDE, ODBC or any other layer.
___________________________________________________________________________
http://www.ibobjects.com <http://www.ibobjects.com> - your IBO community
resource for Tech Info papers,
keyword-searchable FAQ, community code contributions and more !
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
<http://docs.yahoo.com/info/terms/> .
[Non-text portions of this message have been removed]