I want to create a "table" that the user will complete which has an unknown number of rows.
To illustrate it, let's say it is to enter details from a receipt after a shopping trip - i.e. the number of rows (or items) will be unknown.
To acheive this I want to create a grid with a single row, and two columns containing textboxes to enter the item name and price:
+-------+---------+
+ Item + Price +
+-------+---------+
+ Beans + 0.99 +
+-------+---------+
Then after the first row has been completed I want to generate another row on the fly and so on.
Which is the best control for this? Am fairly new to asp.net so not sure if I should be using a Gridview / DataGrid / Repeater or what. (Not sure if it has any relevance, but the item texbox has an Ajax AutoCompleteExtender associated.)
Any pointers would be most welcome.
EDIT
One thing I forgot to mention is that the GridView (or whatever) has no data bound to it when it is loaded. Not sure if that impacts the decision.
you surely can use a repeater but if you identify the structure of the data as a grid ( meaning that you plan or may plan to add new columns in the future for example ), a GridView is probably the best.