Hi Greg,
It is not necessary to rewrite the style information for the second style. You can create a style based on other style using the following method,
IStyle rowHeader = myWorkbook.Styles.Add("rowHeader", tableHeader);
which creates rowHeader Style based on the tableHeader style. The following code has been modified to fit your requirement,
//Define a style
IStyle tableHeader = myWorkbook.Styles.Add("TableHeader");
tableHeader.Color = Color.FromName("Blue");
tableHeader.Font.RGBColor = Color.FromName("White");
tableHeader.Font.Bold = true;
tableHeader.HorizontalAlignment = ExcelHAlign.HAlignCenter;
tableHeader.Borders[ExcelBordersIndex.EdgeTop].LineStyle = ExcelLineStyle.Thick;
tableHeader.Borders[ExcelBordersIndex.EdgeBottom].LineStyle = ExcelLineStyle.Thin;
IStyle rowHeader = myWorkbook.Styles.Add("rowHeader", tableHeader);
rowHeader.Borders[ExcelBordersIndex.EdgeTop].LineStyle = ExcelLineStyle.None;
and here is a sample for your reference
Sample:
http://websamples.syncfusion.com/samples/XlsIO.Windows/F65223/main.htmKindly take a look and let me know if this helps.
Regards,
Ajish.