Hi Faisal,
Thank you for your update.
We have analyzed the given screenshot, we suspect that you have enabled the option (“Repeat as header row at the top of each page”) for first row alone in the table and then you have tried to enable this same option for second row or rest of the rows in the table separately. So, this option is not enabled at your side.
To enable this option, we suggest you follow the below things,
1. Select the number of rows which you wish to enable this option.
2. Right click the rows and select table properties.
3. Check this option to enable first two rows as table header and then click OK.
We have prepared a video illustration for enabling this option for first two rows in the table and it can be downloaded from the below link:
https://www.syncfusion.com/downloads/support/forum/126079/ze/VideoIllustration-1888834418As per said in our earlier update (Updated on 9/23/2016), you can
enable this option programmatically using Essential DocIO. To enable this option programmatically, we suggest you set the table.Rows[0].IsHeader and table.Rows[1].IsHeader property as true. Please use the below highlighted code snippet in your sample application.
//Loads the template document
WordDocument wordDocument = new WordDocument("template.docx");
//Gets the table in the document
WTable table = wordDocument.LastSection.Tables[0] as WTable;
//Sets the IsHeader property of first and second row in the table as true
table.Rows[0].IsHeader = true;
table.Rows[1].IsHeader = true;
//Saves the document
wordDocument.Save("output.docx");
Please refer the below UG documentation link to know more about specifying table header in Word document using DocIO:
https://help.syncfusion.com/file-formats/docio/working-with-tables#specifying-table-header-row-to-repeat-on-each-pagePlease let us know if you have any other questions.
Regards,
Poorani Rajendran