FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class : AddRows Method |
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
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8