public void FixRowFormattingNotAppliedIn105()
{
//ExStart
//ExId:FixRowFormattingNotApplied
//ExSummary:Shows how to fix row formatting not being applied to some rows.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.StartTable();
// For the first row this will be set correctly.
builder.RowFormat.HeadingFormat = true;
builder.InsertCell();
builder.Writeln("Text");
builder.InsertCell();
builder.Writeln("Text");
// End the first row.
builder.EndRow();
// Here we would normally define some other row formatting, such as disabling the
// heading format. However at the moment this will be ignored and the value from the
// first row reapplied to the row.
builder.InsertCell();
// Instead make sure to specify the row formatting for the second row here.
builder.RowFormat.HeadingFormat = false;
// Continue with building your table as usual...
//ExEnd
}