回复 4楼maopaopao的帖子
抱歉,CellRange 是个结构体所以不能判空,FlexGrid 默认至少选择一个单元格。因此使用以下代码即可:
- CellRange cr = this.c1FlexGrid1.Selection;
- int topRow = cr.TopRow;
- int bottomRow = cr.BottomRow;
- int leftCol = cr.LeftCol;
- int rightCol = cr.RightCol;
复制代码
同时使用 r1 r2 c1 c2 也可以获取。 |
|