table cell and row borders different on each edge in C#

Posted by tbischel on Stack Overflow See other posts from Stack Overflow or by tbischel
Published on 2010-04-20T17:54:25Z Indexed on 2010/04/20 19:03 UTC
Read the original article Hit count: 363

Filed under:
|
|

I'm trying to dynamically generate a report in a table where the borders are different on each side of a cell or row, but can't figure out how. The TableRow, TableCell, and Table objects each have a BorderStyle property, but it seems to apply to the entire border rather than just one side. Can this be done without nesting tables?

For my case, I'd like a solid border around the first two rows of a table (because the first row has a cell spanning two rows), and a solid border around each subsequent row.

© Stack Overflow or respective owner

Related posts about borders

Related posts about table