I can't find a way to add items to a column from code. I already have a column created Column[0] but want to add items to it from code for example:
Test1
Test2
Test3
I can't find a way to add items to a column from code. I already have a column created Column[0] but want to add items to it from code for example:
Test1
Test2
Test3
Hi,
After adding a column, you can add items to that column via:
col := TMSFMXNativeUIPickerView.Columns.Add;
it := col.Items.Add;
Thanks for the suggestion, I did it this way:
//Create the rows on the Column 1
PickUserName.Columns[0].Items.Insert(0);
PickUserName.Columns[0].Items.Insert(1);
PickUserName.Columns[0].Items.Insert(2);
//Change the text on the rows for the Column 1
PickUserName.Columns[0].Items[0].Text := 'Test1';
PickUserName.Columns[0].Items[1].Text := 'Test2';
PickUserName.Columns[0].Items[2].Text := 'Test3';
PickUserName is the name of the TTMSFMXNativeUIPickerView
I don't know if this is the best way but is working so far
Looks Good! Thanks for confirming everything is ok