@Shahin1
Sure, you can do this fairly easily from the dropdown items.
You have not mentioned how a particular record is chosen for your scenario, so I will make an assumption on that and you can change as needed.
For your Dropdown, have an Items property of:
With(LookUp(yourDatasource, yourRecordLookupCriteria),
Table(
{Column: "1", Data: col1, Update: {col1: TextInputConrol.Text}},
{Column: "2", Data: col2, Update: {col2: TextInputConrol.Text}},
{Column: "3", Data: col3, Update: {col3: TextInputConrol.Text}},
...etc...
{Column: "30", Data: col30, Update: {col30: TextInputConrol.Text}}
)
)
Replace the LookUp part with a record variable if you already have one. Also change the column names as needed.
Then for your TextInput control, set the Default property to: yourDropdown.Selected.Data
And, for your Update/Submit button, use the following formula on the OnSelect action:
UpdateIf(
yourDataSource,
ID=yourrecordID,
yourDropDown.Selected.Update
)
This should give you what you are looking for.
One word to note on this, the Dropdown and lose its selection as PowerApps re-evaluates the Items formula on it when you update, so to avoid that, add the following formula to the OnChange action of the Dropdown: UpdateContext({lclSel: Self.Selected.Column}) Then set the Default property of the dropdown to: lclSel
I hope this is helpful for you.