感谢您的参会,如果方便,私信下您的姓名公司,方便后续服务。
拖拽移动的功能本身就支持,参考下面代码,移动结束后事件修改行头样式。
- fpSpread1.AllowRowMove = true;
- fpSpread1.AllowRowMoveMultiple = true;
- fpSpread1.RowDragMoveCompleted += FpSpread1_RowDragMoveCompleted;
复制代码- private void FpSpread1_RowDragMoveCompleted(object sender, DragMoveCompletedEventArgs e)
- {
- fpSpread1.ActiveSheet.RowHeader.Rows[e.ToIndex].BackColor = Color.Red;
- }
复制代码 |