repeater

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • tom

    #1

    repeater

    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
  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: repeater

    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.


    --
    - Nicholas Paldino [.NET/C# MVP]
    - nicholas.paldin o@exisconsultin g.com

    "tom" <tomb80527@yaho o.com> wrote in message
    news:c3554005.0 307280801.b053d 87@posting.goog le.com...[color=blue]
    > 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[/color]


    Comment

    Working...