M
mmumme
Ok, here is what I am trying to do. I am building an online reporting
tool where on the left side of the screen I have a listbox with fields
available to report on. When a customer clicks on a list item (report
field) that they want in the report, I want to put that report field in
a row in a repeater on the right side of the screen. In that same row
I want to include a couple of columns of data, a column with a text
box, a column with a drop down list, and a delete button. So the row
looks like this:
Report Field Data Data TEXTBOX DROPDOWNLIST DELETE BUTTON
They can continually do this for as many report fields as they want.
My first question is how to do this? None of this data is in a dataset
to bind to the repeater. The second part is that I have read about
other people that are trying to do something similar and an issue they
run into is if they add a row and enter something in the textbox and
then add another row, when the postback for the second add occurs, they
lose the data entered in the previous row's textbox. I've been
searching for weeks for an answer and I just have not found a good
answer. I also want to be able to have a delete button so they can
delete the row if desired.
Would this be better in a datagrid? They have "built-in" ability for
the delete button, right? Can the rest of what I want be done in a
datagrid? I'm new to the UI portion of .Net. Any help would be
greatly appreciated!
tool where on the left side of the screen I have a listbox with fields
available to report on. When a customer clicks on a list item (report
field) that they want in the report, I want to put that report field in
a row in a repeater on the right side of the screen. In that same row
I want to include a couple of columns of data, a column with a text
box, a column with a drop down list, and a delete button. So the row
looks like this:
Report Field Data Data TEXTBOX DROPDOWNLIST DELETE BUTTON
They can continually do this for as many report fields as they want.
My first question is how to do this? None of this data is in a dataset
to bind to the repeater. The second part is that I have read about
other people that are trying to do something similar and an issue they
run into is if they add a row and enter something in the textbox and
then add another row, when the postback for the second add occurs, they
lose the data entered in the previous row's textbox. I've been
searching for weeks for an answer and I just have not found a good
answer. I also want to be able to have a delete button so they can
delete the row if desired.
Would this be better in a datagrid? They have "built-in" ability for
the delete button, right? Can the rest of what I want be done in a
datagrid? I'm new to the UI portion of .Net. Any help would be
greatly appreciated!