You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: You can learn about the hideCols method in the documentation of the DHTMLX JavaScript Spreadsheet library. Browse developer guides and API reference, try out code examples and live demos, and download a free 30-day evaluation version of DHTMLX Spreadsheet.
5
+
---
6
+
7
+
# hideCols()
8
+
9
+
### Description
10
+
11
+
@short: Hides columns
12
+
13
+
### Usage
14
+
15
+
~~~jsx
16
+
hideCols(cell?: string):void;
17
+
~~~
18
+
19
+
### Parameters
20
+
21
+
-`cell` - (optional) the id of the cell used to define the id of a column. If the cell id isn't passed, the currently selected cell will be used
22
+
23
+
### Example
24
+
25
+
~~~jsx
26
+
spreadsheet.hideCols("B2"); // the "B" column will be hidden
27
+
spreadsheet.hideCols("sheet2!B2"); // the column "B" in "sheet2" will be hidden
28
+
spreadsheet.hideCols("B2:C2"); // the "B" and "C" columns will be hidden
29
+
~~~
30
+
31
+
32
+
**Related article:**[Work with Spreadsheet](working_with_ssheet.md/#hidingshowing-rows-and-columns)
description: You can learn about the hideRows method in the documentation of the DHTMLX JavaScript Spreadsheet library. Browse developer guides and API reference, try out code examples and live demos, and download a free 30-day evaluation version of DHTMLX Spreadsheet.
5
+
---
6
+
7
+
# hideRows()
8
+
9
+
### Description
10
+
11
+
@short: Hides rows
12
+
13
+
### Usage
14
+
15
+
~~~jsx
16
+
hideRows(cell?: string):void;
17
+
~~~
18
+
19
+
### Parameters
20
+
21
+
-`cell` - (optional) the id of the cell used to define the id of a row. If the cell id isn't passed, the currently selected cell will be used
22
+
23
+
### Example
24
+
25
+
~~~jsx
26
+
spreadsheet.hideRows("B2"); // the "2" row will be hidden
27
+
spreadsheet.hideRows("sheet2!B2"); // the "2" row in "sheet2" will be hidden
28
+
spreadsheet.hideRows("B2:C4"); // the rows from "2" to "4" will be hidden
29
+
~~~
30
+
31
+
**Related article:**[Work with Spreadsheet](working_with_ssheet.md/#hidingshowing-rows-and-columns)
description: You can learn about the showCols method in the documentation of the DHTMLX JavaScript Spreadsheet library. Browse developer guides and API reference, try out code examples and live demos, and download a free 30-day evaluation version of DHTMLX Spreadsheet.
5
+
---
6
+
7
+
# showCols()
8
+
9
+
### Description
10
+
11
+
@short: Shows hidden columns
12
+
13
+
### Usage
14
+
15
+
~~~jsx
16
+
showCols( cell?: string):void;
17
+
~~~
18
+
19
+
### Parameters
20
+
21
+
-`cell` - (optional) the id of the cell used to define the id of a column. If the cell id isn't passed, the currently selected cell will be used
22
+
23
+
### Example
24
+
25
+
~~~jsx
26
+
spreadsheet.showCols("B2"); // the "B" column will become visible again
27
+
spreadsheet.showCols("sheet2!B2"); // the column "B" in "sheet2" will become visible again
28
+
spreadsheet.showCols("B2:C2"); // the "B" and "C" columns will become visible again
29
+
~~~
30
+
31
+
**Related article:**[Work with Spreadsheet](working_with_ssheet.md/#hidingshowing-rows-and-columns)
description: You can learn about the showRows method in the documentation of the DHTMLX JavaScript Spreadsheet library. Browse developer guides and API reference, try out code examples and live demos, and download a free 30-day evaluation version of DHTMLX Spreadsheet.
5
+
---
6
+
7
+
# showRows()
8
+
9
+
### Description
10
+
11
+
@short: Shows hidden rows
12
+
13
+
### Usage
14
+
15
+
~~~jsx
16
+
showRows(cell?: string):void;
17
+
~~~
18
+
19
+
### Parameters
20
+
21
+
-`cell` - (optional) the id of the cell used to define the id of a row. If the cell id isn't passed, the currently selected cell will be used
22
+
23
+
### Example
24
+
25
+
~~~jsx
26
+
spreadsheet.showRows("B2"); // the "2" row will become visible again
27
+
spreadsheet.showRows("sheet2!B2"); // the "2" row in "sheet2" will become visible again
28
+
spreadsheet.showRows("B2:C2"); // the rows from "2" to "4" will become visible again
29
+
~~~
30
+
31
+
**Related article:**[Work with Spreadsheet](working_with_ssheet.md/#hidingshowing-rows-and-columns)
0 commit comments