回复 1楼xxwood的帖子
xxwood 你好,
可以通过以下代码来实现该功能:
- protected void FpSpread1_UpdateCommand(object sender, FarPoint.Web.Spread.SpreadCommandEventArgs e)
- {
- int rowindex = Convert.ToInt32(e.CommandArgument);
- this.FpSpread1.Sheets[0].Cells[rowindex, 0].ForeColor = System.Drawing.Color.Red;
- this.FpSpread1.Sheets[0].Cells[rowindex, 0].BackColor = System.Drawing.Color.LightYellow;
- }
复制代码 |