在UpdateCommand事件中写就行
- private void FpSpread1_UpdateCommand(object sender, SpreadCommandEventArgs e)
- {
- var row = (int)e.CommandArgument;
- FpSpread1.ActiveSheetView.Cells[row,0, row,FpSpread1.ActiveSheetView.Columns.Count-1].BackColor= Color.LightSeaGreen;
- }
复制代码 |