Hi Barry,
You can use the AddItemToGroup method. For example, the following code adds a couple groups and items to the list. Then in the button click event handler, a new player is added to the first group. Changing the first parameter to a 1 will add Ian to the Reserves group.
Ray
procedure TForm8.FormCreate(Sender: TObject);
begin
RzListBox1.ShowGroups := True;
RzListBox1.AddGroup( 'Players' );
RzListBox1.Add( 'Anthony Rizzo' );
RzListBox1.Add( 'Kris Bryant' );
RzListBox1.Add( 'Javier Baez' );
RzListBox1.AddGroup( 'Reserves' );
RzListBox1.Add( 'Albert Almora Jr.' );
end;
procedure TForm8.RzButton1Click(Sender: TObject);
begin
RzListBox1.AddItemToGroup( 0, 'Ian Happ' );
end;