TTMSFMXSpinner CustomItems

Hi,

How can I delete the current item from a column. I am trying:

    Spinner.Columns[0].CustomItems.Delete(Spinner.Columns[0].Index);
    Spinner.Columns[0].RangeTo:=Spinner.Columns[0].RangeTo-1;
    Spinner.Columns[0].UpdateColumn;

but this has no effect.

Thanks in advance,

Ken

please use Spinner.BeginUpdate and Spinner.EndUpdate wrappers around the code.

I had already tried that but made no difference. I know have it working by changing the 1st line to:

Spinner.Columns[0].CustomItems.Delete(Trunc(Spinner.Columns[0].SelectedValue));

Thank you for the confirmation