Data Grid Display Issues

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

    #1

    Data Grid Display Issues

    In my ASP.NET project I am creating an invoice. I add the items in my
    invoice to a datagrid (I'll call it dg). However, I am having some
    display issues. The following line should write "Total" in the footer,
    but nothing appears, I'm wondering why

    dg.Columns(2).F ooterText = "Total"

    I also can't make a border appear in the header of the table

    dg.HeaderStyle. BorderColor = Drawing.Color.B lack
    dg.HeaderStyle. BorderStyle = BorderStyle.Rid ge
    dg.HeaderStyle. BorderWidth = Unit.Pixel(20)

    And i can't make the first row in the grid blank, if I add a blank row
    to the DataTable that is the Datagrid's source, the first row in the
    datatable still contains information.
Working...