repeater

  • Thread starter Thread starter tom
  • Start date Start date
T

tom

I need some help with the Repeater in C#. I am new to .Net and cannot
get the repeater to do what I want. I want to show a table with 2 or 3
columns based on what ever looks good. The info will come from a SQL
query. Each cell in the table will contain a label and then either a
check box, dropdown box, or textbox, This has got to be possible. Then
if the user, checks or selects a value or types in something, for some
or all the items and hits a save button the database will be updated.
So I have 2 problems as I see it. 1 is it possible to have more than
one column and n rows in a repeater (or datalist I may be trying to
use the wrong object), and 2 how do I know which check boxes or
textboxes the user changed the values in? I would appreciate any help.
thanks
 
tom,

It is possible, but trying to do it with the datagrid seems like the
wrong way to go. What I would do is create a control that would represent
one record. This control would then modify its display accoring to the data
(so it has either a checkbox, textbox, etc, etc). Once that is done, I
would create a parent control that will display the controls as needed for
each record in the table, and be responsible for updating the underlying
data source.

Hope this helps.
 
Back
Top