回复 1楼menghuanyunxia的帖子
menghuanyunxia 你好,
请同过一下代码测试,代码中还包含抓取行添加或删除事件:
- private void Form1_Load(object sender, EventArgs e)
- {
- this.fpSpread1.Sheets[0].RowChanged += new FarPoint.Win.Spread.SheetViewEventHandler(Form1_RowChanged);
- this.fpSpread1.Sheets[0].ColumnChanged += new FarPoint.Win.Spread.SheetViewEventHandler(Form1_ColumnChanged);
- }
- void Form1_ColumnChanged(object sender, FarPoint.Win.Spread.SheetViewEventArgs e)
- {
- }
- void Form1_RowChanged(object sender, FarPoint.Win.Spread.SheetViewEventArgs e)
- {
- }
- private void deleteToolStripMenuItem_Click(object sender, EventArgs e)
- {
- this.fpSpread1.Sheets[0].Rows.Remove(0, 1);
- this.fpSpread1.Sheets[0].Columns.Add(0, 1);
- }
复制代码 |