Jump to content

Recommended Posts

Posted

Hi,

 

How do you loop through multi-select on the ListBox or Grid controls ?

 

In a VCL form Grid I could do the following:

 

var i : Integer;

begin

with DBGrid1.DataSource.DataSet do

begin

for i := 0 to DBGrid1.SelectedRows.Count-1 do

begin

GotoBookmark(Pointer(DBGrid1.SelectedRows.Items));

Edit1.Text := Edit1.Text + ',' + DBGrid1.DataSource.DataSet.FieldByName('Username').Value;

end;

end;

 

 

For ListBoxes I could use:

 

var i: integer;

begin

 

edit1.Text := '';

 

for i := 0 to ListBox1.Count - 1 do

begin

if ListBox1.Selected then

Edit1.Text := edit1.Text + ',' + ListBox1.Items;

end;

 

UniDBGrid is missing the SelectedRows property.

UniListBox is missing Selected property.

 

Any ideas ?

 

Thanks

Andrew

Posted

Hi,

UniDBGrid doesn't support multi-selection yet.

 

Any idea when multi-select will be available ?

 

And will it be added to ListBox soon ? (Doesn't have to be database aware)

 

Thanks

Andrew

Posted

Issue number is #841.

 

I increased its priority.

 

Any idea when the next release will be ? (and if #841) will be included ? (I plan on using this for a teacher event recorder at our school)

 

Thanks..

post-14-0-40834100-1333419856_thumb.png

×
×
  • Create New...