property Items.CellRadioGroup(Index as Long, ColIndex as Variant) as Long
Retrieves or sets a value indicating the radio group where the cell is contained.

TypeDescription
Index as Long A long expression that indicates the index of the item.
ColIndex as Variant A long expression that indicates the column's index, or a string expression that indicates the column's caption or column's key.
Long A long value indicating the radio group where the cell is contained.

Use the CellRadioGroup property to add or remove a radio button from a group. In a radio group only one radio button can be checked. A radio cell cannot be contained by two different radio groups. Use the CellHasRadioButton property to add a radio button to a cell. When the cell's state is changed the control fires the CellStateChanged event. The CellState property specifies the cell's state. By default, when a cell of radio type is created  the radio cell is not grouped to any of existent radio groups.

The following VB sample groups the radio cells in the first column, and displays the caption of the checked radio cell:

With List1
    .Columns(0).Def(exCellHasRadioButton) = True
    For Each i In .Items
        .Items.CellRadioGroup(i, 0) = 1234
    Next
End With

The following C++ sample groups the radio cells on the first column, and displays the caption of the checked radio cell:

#include "Items.h"
COleVariant vtColumn( long(0) );
CItems items = m_list.GetItems();
m_list.BeginUpdate();
for ( long i = 0; i < items.GetCount(); i++ )
{
	items.SetCellHasRadioButton( i, vtColumn, TRUE );
	items.SetCellRadioGroup( i, vtColumn, 1234 );
}
m_list.EndUpdate();

The following VB.NET sample groups the radio cells on the first column, and displays the caption of the checked radio cell:

With AxList1
    .BeginUpdate()
    .Columns(0).Def(EXLISTLib.DefColumnEnum.exCellHasRadioButton) = True
    With .Items
        Dim k As Integer
        For k = 0 To .Count - 1
            .CellRadioGroup(k, 0) = 1234
        Next
    End With
    .EndUpdate()
End With

The following C# sample groups the radio cells on the first column, and displays the caption of the checked radio cell:

axList1.BeginUpdate();
EXLISTLib.Items items = axList1.Items;
axList1.Columns[0].set_Def(EXLISTLib.DefColumnEnum.exCellHasRadioButton, true);
for (int i = 0; i < items.Count; i++)
	items.set_CellRadioGroup(i, 0, 1234);
axList1.EndUpdate();

The following VFP sample groups the radio cells on the first column, and displays the caption of the checked radio cell:

thisform.List1.BeginUpdate()
with thisform.List1.Items
	local i
	for i = 0 to .Count - 1
		.CellHasRadioButton( i,0 ) = .t.
		.CellRadioGroup(i,0) = 1234
	next
endwith
thisform.List1.EndUpdate()