Underline a whole row for a particular row

Ask a Question related to ASP.NET Data Grid Control, Design and Development.

  1. #1

    Default Underline a whole row for a particular row

    Hi,
    I have a datagrid which I want to underline some rows. However it doesn't
    seem I can do it through setting the border property. How can I do it?

    Please help. Thanks!


    news.microsoft.com Guest

  2. Similar Questions and Discussions

    1. underline when rolling over link
      i have a long list of links and want to jazz it up a little, how do i get the lines to appear under the link when the cursor moves over it. Is it a...
    2. Underline on a hyperlinlks
      Hi all, how do I remove or add the underline on hyperlinks?
    3. change underline colour
      Does anyone has any clue about if (and how) I can change underline, strike-through and highlighting colours? Thanks
    4. CSS for links (underline on hover)
      I've recently discovered the pre-installed CSS Styles in DMX. I really like following effect: A stationary link isn't underlined (I can...
    5. sorting and datagrid and underline
      how to eliminate underline from sorting headers on a datagrid. I modified <A> in the style sheet. Is there any other way to accomplish this in...
  3. #2

    Default Underline a whole row for a particular row

    You can do it in ItemCreated

    if(condition){
    foreach(TableCell cell In e.Item.Cells){
    cell.Font.Underline = true;
    }
    }

    HTH

    Elton Wang
    >-----Original Message-----
    >Hi,
    >I have a datagrid which I want to underline some rows.
    However it doesn't
    >seem I can do it through setting the border property. How
    can I do it?
    >
    >Please help. Thanks!
    >
    >
    >.
    >
    Elton Wang Guest

  4. #3

    Default Re: Underline a whole row for a particular row

    This only underlines the texts in the grid. What I want is to underline the
    whole row. It seems setting the border property is the only way.
    Any thoughts?


    "Elton Wang" <anonymous@discussions.microsoft.com> wrote in message
    news:433801c520e1$15dc3290$a601280a@phx.gbl...
    > You can do it in ItemCreated
    >
    > if(condition){
    > foreach(TableCell cell In e.Item.Cells){
    > cell.Font.Underline = true;
    > }
    > }
    >
    > HTH
    >
    > Elton Wang
    > >-----Original Message-----
    > >Hi,
    > >I have a datagrid which I want to underline some rows.
    > However it doesn't
    > >seem I can do it through setting the border property. How
    > can I do it?
    > >
    > >Please help. Thanks!
    > >
    > >
    > >.
    > >

    news.microsoft.com Guest

  5. #4

    Default Re: Underline a whole row for a particular row

    Hi there,

    The border is not a horizontal line. You can't use it as a
    crossing line. You might use other property, e.g.
    background color, to mark a row in the datagrid.
    >-----Original Message-----
    >This only underlines the texts in the grid. What I want
    is to underline the
    >whole row. It seems setting the border property is the
    only way.
    >Any thoughts?
    >
    >
    >"Elton Wang" <anonymous@discussions.microsoft.com> wrote
    in message
    >news:433801c520e1$15dc3290$a601280a@phx.gbl...
    >> You can do it in ItemCreated
    >>
    >> if(condition){
    >> foreach(TableCell cell In e.Item.Cells){
    >> cell.Font.Underline = true;
    >> }
    >> }
    >>
    >> HTH
    >>
    >> Elton Wang
    >> >-----Original Message-----
    >> >Hi,
    >> >I have a datagrid which I want to underline some rows.
    >> However it doesn't
    >> >seem I can do it through setting the border property.
    How
    >> can I do it?
    >> >
    >> >Please help. Thanks!
    >> >
    >> >
    >> >.
    >> >
    >
    >
    >.
    >
    Elton Wang Guest

  6. #5

    Default Re: Underline a whole row for a particular row

    Yeah..... That might be the only way out.......

    Thanks!

    Xiaowei


    "Elton Wang" <anonymous@discussions.microsoft.com> wrote in message
    news:34c101c521d1$9a055790$a501280a@phx.gbl...
    > Hi there,
    >
    > The border is not a horizontal line. You can't use it as a
    > crossing line. You might use other property, e.g.
    > background color, to mark a row in the datagrid.
    >
    > >-----Original Message-----
    > >This only underlines the texts in the grid. What I want
    > is to underline the
    > >whole row. It seems setting the border property is the
    > only way.
    > >Any thoughts?
    > >
    > >
    > >"Elton Wang" <anonymous@discussions.microsoft.com> wrote
    > in message
    > >news:433801c520e1$15dc3290$a601280a@phx.gbl...
    > >> You can do it in ItemCreated
    > >>
    > >> if(condition){
    > >> foreach(TableCell cell In e.Item.Cells){
    > >> cell.Font.Underline = true;
    > >> }
    > >> }
    > >>
    > >> HTH
    > >>
    > >> Elton Wang
    > >> >-----Original Message-----
    > >> >Hi,
    > >> >I have a datagrid which I want to underline some rows.
    > >> However it doesn't
    > >> >seem I can do it through setting the border property.
    > How
    > >> can I do it?
    > >> >
    > >> >Please help. Thanks!
    > >> >
    > >> >
    > >> >.
    > >> >
    > >
    > >
    > >.
    > >

    news.microsoft.com Guest

  7. #6

    Default Re: Underline a whole row for a particular row

    Sure you can. Just use css rule border-bottom for every cell.

    Eliyahu

    "Elton Wang" <anonymous@discussions.microsoft.com> wrote in message
    news:34c101c521d1$9a055790$a501280a@phx.gbl...
    > Hi there,
    >
    > The border is not a horizontal line. You can't use it as a
    > crossing line. You might use other property, e.g.
    > background color, to mark a row in the datagrid.
    >
    > >-----Original Message-----
    > >This only underlines the texts in the grid. What I want
    > is to underline the
    > >whole row. It seems setting the border property is the
    > only way.
    > >Any thoughts?
    > >
    > >
    > >"Elton Wang" <anonymous@discussions.microsoft.com> wrote
    > in message
    > >news:433801c520e1$15dc3290$a601280a@phx.gbl...
    > >> You can do it in ItemCreated
    > >>
    > >> if(condition){
    > >> foreach(TableCell cell In e.Item.Cells){
    > >> cell.Font.Underline = true;
    > >> }
    > >> }
    > >>
    > >> HTH
    > >>
    > >> Elton Wang
    > >> >-----Original Message-----
    > >> >Hi,
    > >> >I have a datagrid which I want to underline some rows.
    > >> However it doesn't
    > >> >seem I can do it through setting the border property.
    > How
    > >> can I do it?
    > >> >
    > >> >Please help. Thanks!
    > >> >
    > >> >
    > >> >.
    > >> >
    > >
    > >
    > >.
    > >

    Eliyahu Goldin 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