Ask a Question related to ASP.NET Building Controls, Design and Development.

  1. #1

    Default Datalist question

    I'm using a datalist with Repeat Column = 2..
    Which will be Rendered
    <TR>
    <TD></TD>
    <TD></TD>
    </TR>

    now i want to add horizontal seprator.. I mean new row with doted line.. so
    i try to insert TableRow control between each row, but when i rty to
    override AddedControls i found all controls of type DataListItem.

    Which method i need to override to accomplish this task??

    <TR>
    <TD></TD>
    </TR>


    Islamegy® Guest

  2. Similar Questions and Discussions

    1. DataList Control Formatting Question
      Hi I have a Datalist control and am using it to display some data (snippet below). Sometimes there is no record for, say, "Mobile". In this...
    2. datalist please help soon
      H data I'm binding to the DataList is information about products in my product database. Perhaps passed in the QueryString to this page is a...
    3. Datalist/Datagrid question concerning selecting item and bringing it into focus
      When someone clicks view on my datalist if the item was way down on the page they must then scroll back down to it. How can I avoid this? (jump...
    4. newbie--datalist question
      I have the ASP Unleased book--of course all code. So it doesn't help me tie it to the VSNET IDE easily--to know what I have to do and what is done...
    5. Design Question -- DataList, Probably Easily Answered
      Hi Ron, Check out this article: http://www.developer.com/net/asp/article.php/2215041 I think it will get you going in the right direction. ...
  3. #2

    Default Re: Datalist question

    I haven't used a DataList in a while, but you might look into the
    SeparatorTemplate

    --
    David Wier
    MVP/ASPInsider
    [url]http://aspnet101.com[/url]
    [url]http://aspexpress.com[/url]



    "Islamegy®" <Islamegy@Private.4me> wrote in message
    news:eaiHqqrxGHA.3496@TK2MSFTNGP02.phx.gbl...
    > I'm using a datalist with Repeat Column = 2..
    > Which will be Rendered
    > <TR>
    > <TD></TD>
    > <TD></TD>
    > </TR>
    >
    > now i want to add horizontal seprator.. I mean new row with doted line..
    so
    > i try to insert TableRow control between each row, but when i rty to
    > override AddedControls i found all controls of type DataListItem.
    >
    > Which method i need to override to accomplish this task??
    >
    > <TR>
    > <TD></TD>
    > </TR>
    >
    >

    David Wier Guest

  4. #3

    Default Re: Datalist question

    I used it but when RepeatColumn = 2 the seprator will be Vertical between
    cells not horizonal between rows.

    "David Wier" <david_wier@noSpamhotmail.com> wrote in message
    news:%23xR46lsxGHA.3512@TK2MSFTNGP04.phx.gbl...
    >I haven't used a DataList in a while, but you might look into the
    > SeparatorTemplate
    >
    > --
    > David Wier
    > MVP/ASPInsider
    > [url]http://aspnet101.com[/url]
    > [url]http://aspexpress.com[/url]
    >
    >
    >
    > "Islamegy®" <Islamegy@Private.4me> wrote in message
    > news:eaiHqqrxGHA.3496@TK2MSFTNGP02.phx.gbl...
    >> I'm using a datalist with Repeat Column = 2..
    >> Which will be Rendered
    >> <TR>
    >> <TD></TD>
    >> <TD></TD>
    >> </TR>
    >>
    >> now i want to add horizontal seprator.. I mean new row with doted line..
    > so
    >> i try to insert TableRow control between each row, but when i rty to
    >> override AddedControls i found all controls of type DataListItem.
    >>
    >> Which method i need to override to accomplish this task??
    >>
    >> <TR>
    >> <TD></TD>
    >> </TR>
    >>
    >>
    >
    >

    Islamegy® Guest

  5. #4

    Default Re: Datalist question

    you could always watch the mod of the item count on itemcreated and
    then insert the code accordingly.

    Although it might be easy to derive a new control and overload the
    render function. I don't know. just throwing up ideas.

    Islamegy® wrote:
    > I used it but when RepeatColumn = 2 the seprator will be Vertical between
    > cells not horizonal between rows.
    >
    > "David Wier" <david_wier@noSpamhotmail.com> wrote in message
    > news:%23xR46lsxGHA.3512@TK2MSFTNGP04.phx.gbl...
    > >I haven't used a DataList in a while, but you might look into the
    > > SeparatorTemplate
    > >
    > > --
    > > David Wier
    > > MVP/ASPInsider
    > > [url]http://aspnet101.com[/url]
    > > [url]http://aspexpress.com[/url]
    > >
    > >
    > >
    > > "Islamegy®" <Islamegy@Private.4me> wrote in message
    > > news:eaiHqqrxGHA.3496@TK2MSFTNGP02.phx.gbl...
    > >> I'm using a datalist with Repeat Column = 2..
    > >> Which will be Rendered
    > >> <TR>
    > >> <TD></TD>
    > >> <TD></TD>
    > >> </TR>
    > >>
    > >> now i want to add horizontal seprator.. I mean new row with doted line...
    > > so
    > >> i try to insert TableRow control between each row, but when i rty to
    > >> override AddedControls i found all controls of type DataListItem.
    > >>
    > >> Which method i need to override to accomplish this task??
    > >>
    > >> <TR>
    > >> <TD></TD>
    > >> </TR>
    > >>
    > >>
    > >
    > >
    andrew Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139