Parameters
- row
- Row index where the new rows are to be added
- count
- Number of rows to be added
DialogResult dlg; fpSpread1.ActiveSheet.Rows.Count = 4; dlg = MessageBox.Show("Do you want to add some rows?", "AddRows", MessageBoxButtons.YesNo); if (dlg == DialogResult.Yes) { fpSpread1.ActiveSheet.AddRows(0, 2); }
Dim dlg As DialogResult FpSpread1.ActiveSheet.Rows.Count = 4 dlg = MessageBox.Show("Do you want to add some rows?", "AddRows", MessageBoxButtons.YesNo) If dlg = DialogResult.Yes Then FpSpread1.ActiveSheet.AddRows(0, 2) End If