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
Copy file name to clipboardExpand all lines: Flutter/xlsio/worksheet-rows-and-columns-manipulation.md
+47Lines changed: 47 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -183,6 +183,53 @@ workbook.dispose();
183
183
184
184
{% endhighlight %}
185
185
186
+
## Show or Hide Rows and Columns
186
187
188
+
Visibility of rows and columns can be set by using the [showRows](https://pub.dev/documentation/syncfusion_flutter_xlsio/latest/xlsio/Range/showRows.html) and [showColumns](https://pub.dev/documentation/syncfusion_flutter_xlsio/latest/xlsio/Range/showColumns.html) methods as shown below.
187
189
190
+
{% highlight dart %}
191
+
192
+
// Create a new Excel Document.
193
+
final Workbook workbook = Workbook(1);
194
+
195
+
// Accessing sheet via index.
196
+
final Worksheet sheet = workbook.worksheets[0];
197
+
198
+
// Show or hide rows in the given range. TRUE by default.
199
+
sheet.getRangeByName('A1').showRows(false);
200
+
sheet.getRangeByName('A2:A5').showRows(false);
201
+
202
+
// Show or hide columns in the given range. TRUE by default.
The following code snippet shows how to set the visibility for a specific range through [showRange](https://pub.dev/documentation/syncfusion_flutter_xlsio/latest/xlsio/Range/showRange.html) method .
216
+
217
+
{% highlight dart %}
218
+
219
+
// Create a new Excel Document.
220
+
final Workbook workbook = Workbook(1);
221
+
222
+
// Accessing sheet via index.
223
+
final Worksheet sheet = workbook.worksheets[0];
224
+
225
+
// Show or hide rows and columns in the given range. TRUE by default.
0 commit comments