Is it possible to bind a specific element within a list or array to an input?
If yes, how can this be achieved?
If no, what is the alternative?
Diagram Example:
Is it possible to bind a specific element within a list or array to an input?
If yes, how can this be achieved?
If no, what is the alternative?
Diagram Example:
You can use DataList component with TextBox inside Template.
Thank you, that works nicely.
I would would like to extend my question to another scenario if possible...
I don't understand your question. What have you tried so far? What happened when you tried it?
Issue:
I have a fixed list of 50 elements and I want to display each element in a separate sub-column of the DataGrid. However, I also want to apply inline editing to each row of the DataGrid, therefore I need to be able to edit each element within the list separately (e.g. myStrings[0], myStrings[1], etc.) and I'm not sure how to achieve this.
My Attempt:
I have tried binding each TextBox as so...
@bind-Value=" Alpha.myStrings[index] "
but it doesn't like that and it wont' let me inline edit (add or edit rows).
Error: