Results 1 to 7 of 7

Thread: can you imagine?--help please!

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jun 2004
    Posts
    169

    can you imagine?--help please!

    In asp.net
    I need to bind sql data to a data grid, the datagrid is weird, because
    it has both vertical and horizontal GRID lines but without left and right outside borders(it does have top and bottom outside borders ), ALSO.THE TOP BORDER LINE IS THICKER THAN ANY OTHER .

    FOR SUCH ,WHAT TYPE OF CONTROL SHOULD i CHOOSE ?

    ANY CODE SNIPPLET TO POPULATE THE CONTROL IS WELCOME

  2. #2
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704

    Re: can you imagine?--help please!

    post a screenshot

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: can you imagine?--help please!

    Post your code.

  4. #4
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704

    Re: can you imagine?--help please!

    Post a screenshot of your code

  5. #5
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: can you imagine?--help please!

    Rofl.

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Jun 2004
    Posts
    169

    Re: can you imagine?--help please!

    HOw can I add an empty row , I don't want text "space" appear in the table cell, I also tried .cells(i).text="" it doens't work out for me

    With tblName.Rows(tblName.Rows.Count - 1)
    .Cells.Add(New Web.UI.WebControls.TableCell)
    .Cells.Add(New Web.UI.WebControls.TableCell)
    .Cells.Add(New Web.UI.WebControls.TableCell)
    .Cells(0).Text = "space"
    .Cells(1).Text = "space"
    .Cells(2).Text = "space"
    End With

  7. #7
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704

    Re: can you imagine?--help please!

    You're using tablecells which like a cell in a <table> tag, expand to show the content contained within them - otherwise the cell height collapses.

    As in regular html, if you want a cell to appear, you apply a space. In html, you use &nbsp; but I believe the text property of the TableCell control might require just a simple space " ".

    That said html cells can alternatively be explicity set to be a certain height using their height attribute.

Posting Permissions

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



Click Here to Expand Forum to Full Width