# Javascript: TableRow.setIsHeader Method

> Sets a value specifying whether the table row is part of the table's header.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 28.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: TableRow.setIsHeader Method
- **374 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/tablerow/setisheader-method/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/tablerow/setisheader-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/tablerow/setisheader-method/llms-full.txt

---

### Description

Sets a value specifying whether the table row is part of the table's header.

### Syntax

```javascript
<void> TableRow.setIsHeader(<boolean> isHeader, [<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])
```

### Parameters

| Parameter | Description |
|---|---|
| isHeader | Specifies whether the table row is part of the table's header. |
| callback | Optional. Is called when the operation completed. |
| errorCallback | Optional. Is called when the operation failed with an error. |

### Examples

The following example demonstrates `TableRow.setIsHeader` in a practical document-editing workflow. It sets a value specifying whether the table row is part of the table's header.

```javascript
function onTxError(error) {
    console.error("TX Text Control error:", error.msg);
    error.handled = true;
}

function configureIsHeader(tableRow) {
    tableRow.setIsHeader(
        true,
        function() {
            console.log("set is header completed.");
        },
        onTxError
    );
}
```

---

## Nearby

- **Previous:** [Javascript: TableRow.setAllowPageBreak Method](https://docs.textcontrol.com/ds-server/reference/javascript/tablerow/setallowpagebreak-method/llms-full.txt)
- **Next:** [Javascript: TableRow.setMinimumHeight Method](https://docs.textcontrol.com/ds-server/reference/javascript/tablerow/setminimumheight-method/llms-full.txt)
