xxwood 你好 ,
1.选中单元格的边框加黑加粗可以通过前台 js 实现,需要添加 FpSpread1_ActiveCellChanged 前台事件,代码如下:
- var preActiveRow;
- var preActiveCol;
- function FpSpread1_ActiveCellChanged(event){
- //Add code to handle your event here.
- var spread = document.getElementById("FpSpread1");
- var preActiveCell;
- if (preActiveCol==null&&preActiveRow==null) {
- preActiveCell = spread.GetCellByRowCol(0, 0);
- preActiveCell.className = 'reset';
- }
- else {
- preActiveCell = spread.GetCellByRowCol(preActiveRow, preActiveCol);
- }
- preActiveCell.className = 'reset';
- var row = spread.ActiveRow;
- var column = spread.ActiveCol;
- var cell = spread.GetCellByRowCol(row, column);
- preActiveRow = spread.ActiveRow;
- preActiveCol = spread.ActiveCol;
- cell.className = 'border';
- }
复制代码 2.设置快捷键,通过 Spread 前台方法 AddKeyMap() 实现:- window.onload = function myfunction() {
- custom();
- } //设置快捷键
- function custom() {
- var spread = document.getElementById("FpSpread1");
- if (spread != null) {
- spread.AddKeyMap(13, false, false, false, "this.MoveToNextCell()");
- }
复制代码 3.Spread for ASP.NET 5.0 不支持大纲功能,给你带来不便,很抱歉。 |