How to color Table Cell's border?

Hi there,

Can we color the table cell’s border?
I try to use:
builder.CellFormat.Borders.Color = Color.Red;

but all the borders are gone.

regards and thanks

hi, i found the solution:

var mycell = builder.InsertCell();

color = Color.FromArgb(217, 217, 217);
mycell.CellFormat.Borders.Top.Color = color;
mycell.CellFormat.Borders.Bottom.Color = color;
mycell.CellFormat.Borders.Left.Color = color;
mycell.CellFormat.Borders.Right.Color = color;

@ibox It is perfect that you managed to achieve what you need. You are right, you can configure all borders properties by using BorderCollection properties, or individual borders by setting properties of left, right, top or bottom border.