Subject | Re: [IBO] Multi rows with IB_Grid |
---|---|
Author | Andrei Luís |
Post date | 2010-01-27T01:17:42Z |
Humm, sorry for my lazy behavior previous.
Here what I did:
Select the current row:
CityQuery.Selected[CityQuery.RowNum] := true;
Unselect the current row:
CityQuery.Selected[CityQuery.RowNum] := false;
Select all rows:
CityQuery.SelectAll(true);
Unselect all rows:
CityQuery.SelectAll(false);
I think all these are correct, right?
[]
Andrei
2010/1/26 Andrei Luís <compuvale.software@...>
Here what I did:
Select the current row:
CityQuery.Selected[CityQuery.RowNum] := true;
Unselect the current row:
CityQuery.Selected[CityQuery.RowNum] := false;
Select all rows:
CityQuery.SelectAll(true);
Unselect all rows:
CityQuery.SelectAll(false);
I think all these are correct, right?
[]
Andrei
2010/1/26 Andrei Luís <compuvale.software@...>
> Thanks Andrew, it worked.[Non-text portions of this message have been removed]
>
> Another one: what code do I use to select/unselect a row and what code for
> unselect all?
>
> I'd like to select/unselect by double clicking the rows, and I like to put
> a button to unselect all that are selected.
>
> Thanks,
> Andrei
>
> 2010/1/26 Andrew <ahaines@...>
>
> On 01/26/2010 06:07 PM, Andrei Luís wrote:
>> > How can I retrieve the rows that are multi selected in an IB_Grid?
>> >
>> > My scenario:
>> > In ib_grid, I want to select some cities, and after a button click I
>> want to
>> > do a select using the cities as where parameter.CityQuery.BufferFirst;
>> >
>> CityQuery.BufferFirst;
>> while not CityQuery.BufferEof do
>> begin
>> if CityQuery.Selected[CityQuery.BufferRowNum] then
>> begin
>> //[to do] add city for where clause use
>> end;
>> CityQuery.BufferNexr;
>> end;
>>
>
>