取消的我也有写全部代码是这样的
- if (this.MPackingListGrid.GetCellCheck(row, 3) == CheckEnum.Checked)
- {
- printList.Add(row);
- printList.Sort();
-
- CellRange rg = MPackingListGrid.GetCellRange(row,3,1,11);
- rg.StyleNew.BackColor=Color.Gold;
-
-
- }
- else if (this.MPackingListGrid.GetCellCheck(row, 3) != CheckEnum.Checked)
- {
- printList.Remove(row);
- CellRange rg = MPackingListGrid.GetCellRange(row,3,1,11);
- rg.Style.Clear();
- }
复制代码
|